Skip to content

Commit 3cf4ba7

Browse files
author
Theodore Li
committed
Fix lint
1 parent 7f05fb7 commit 3cf4ba7

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/resource-content.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ export const ResourceContent = memo(function ResourceContent({
105105
workspaceId={workspaceId}
106106
fileId={resource.id}
107107
previewMode={previewMode}
108-
streamingContent={
109-
streamingFile ? extractFileContent(streamingFile.content) : undefined
110-
}
108+
streamingContent={streamingFile ? extractFileContent(streamingFile.content) : undefined}
111109
/>
112110
)
113111

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,7 @@ export function useChat(
785785
const delta = typeof parsed.data === 'string' ? parsed.data : ''
786786
if (!id || !delta) break
787787

788-
const toolName =
789-
typeof parsed.toolName === 'string' ? parsed.toolName : ''
788+
const toolName = typeof parsed.toolName === 'string' ? parsed.toolName : ''
790789
const streamWorkspaceFile =
791790
activeSubagent === 'file_write' || toolName === 'workspace_file'
792791

@@ -807,9 +806,7 @@ export function useChat(
807806
if (m) {
808807
fileName = m[1]
809808
setResources((rs) =>
810-
rs.map((r) =>
811-
r.id === 'streaming-file' ? { ...r, title: fileName } : r
812-
)
809+
rs.map((r) => (r.id === 'streaming-file' ? { ...r, title: fileName } : r))
813810
)
814811
}
815812
}

0 commit comments

Comments
 (0)