Skip to content

Commit 98cae4c

Browse files
committed
fix: pass subblock id to option hydration
1 parent f791d66 commit 98cae4c

File tree

2 files changed

+4
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components

2 files changed

+4
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export const ComboBox = memo(function ComboBox({
410410
let isActive = true
411411

412412
// Fetch the hydrated option
413-
fetchOptionById(blockId, valueToHydrate)
413+
fetchOptionById(blockId, subBlockId, valueToHydrate)
414414
.then((option) => {
415415
if (isActive) setHydratedOption(option)
416416
})
@@ -425,6 +425,7 @@ export const ComboBox = memo(function ComboBox({
425425
fetchOptionById,
426426
value,
427427
blockId,
428+
subBlockId,
428429
isPreview,
429430
disabled,
430431
fetchedOptions,

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/dropdown/dropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ export const Dropdown = memo(function Dropdown({
478478
let isActive = true
479479

480480
// Fetch the hydrated option
481-
fetchOptionById(blockId, valueToHydrate)
481+
fetchOptionById(blockId, subBlockId, valueToHydrate)
482482
.then((option) => {
483483
if (isActive) setHydratedOption(option)
484484
})
@@ -494,6 +494,7 @@ export const Dropdown = memo(function Dropdown({
494494
singleValue,
495495
multiSelect,
496496
blockId,
497+
subBlockId,
497498
isPreview,
498499
disabled,
499500
fetchedOptions,

0 commit comments

Comments
 (0)