Skip to content

Commit 5d7fc53

Browse files
Vikhyath MondretiVikhyath Mondreti
authored andcommitted
fix lint
1 parent 7a5aead commit 5d7fc53

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/document-selector/document-selector.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ export function DocumentSelector({
6868
// Use preview value when in preview mode, otherwise use store value
6969
const value = isPreview ? previewValue : storeValue
7070

71-
72-
7371
// Fetch documents for the selected knowledge base
7472
const fetchDocuments = useCallback(async () => {
7573
if (!knowledgeBaseId) {

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/knowledge-base-selector/knowledge-base-selector.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ export function KnowledgeBaseSelector({
148148
onKnowledgeBaseSelect?.(selectedIds)
149149
}
150150

151-
152-
153151
// Use cached data if available
154152
useEffect(() => {
155153
if (knowledgeBasesList.length > 0 && !initialFetchDone) {

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/hooks/use-sub-block-value.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useCallback, useEffect, useRef } from 'react'
22
import { isEqual } from 'lodash'
3+
import { useCollaborativeWorkflow } from '@/hooks/use-collaborative-workflow'
34
import { getProviderFromModel } from '@/providers/utils'
45
import { useGeneralStore } from '@/stores/settings/general/store'
56
import { useSubBlockStore } from '@/stores/workflows/subblock/store'
67
import { useWorkflowStore } from '@/stores/workflows/workflow/store'
7-
import { useCollaborativeWorkflow } from '@/hooks/use-collaborative-workflow'
88

99
// Helper function to dispatch collaborative subblock updates
1010
const dispatchSubblockUpdate = (blockId: string, subBlockId: string, value: any) => {
@@ -239,7 +239,16 @@ export function useSubBlockValue<T = any>(
239239
}
240240
}
241241
},
242-
[blockId, subBlockId, blockType, isApiKey, storeValue, triggerWorkflowUpdate, modelValue, collaborativeSetSubblockValue]
242+
[
243+
blockId,
244+
subBlockId,
245+
blockType,
246+
isApiKey,
247+
storeValue,
248+
triggerWorkflowUpdate,
249+
modelValue,
250+
collaborativeSetSubblockValue,
251+
]
243252
)
244253

245254
// Initialize valueRef on first render

0 commit comments

Comments
 (0)