Skip to content

Commit 451ebc5

Browse files
committed
fix(webflow): resolution for selectors
1 parent 43c0f5b commit 451ebc5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/sim/hooks/selectors/resolution.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,16 @@ function resolveFileSelector(
118118
}
119119
case 'sharepoint':
120120
return { key: 'sharepoint.sites', context, allowSearch: true }
121-
case 'webflow':
122-
if (subBlock.id === 'collectionId') {
121+
case 'webflow': {
122+
const paramId = subBlock.canonicalParamId ?? subBlock.id
123+
if (paramId === 'collectionId') {
123124
return { key: 'webflow.collections', context, allowSearch: false }
124125
}
125-
if (subBlock.id === 'itemId') {
126+
if (paramId === 'itemId') {
126127
return { key: 'webflow.items', context, allowSearch: true }
127128
}
128129
return { key: null, context, allowSearch: true }
130+
}
129131
default:
130132
return { key: null, context, allowSearch: true }
131133
}

0 commit comments

Comments
 (0)