Skip to content

Commit 55d9aa7

Browse files
committed
tag drop ordering fix
1 parent 6adafd9 commit 55d9aa7

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,10 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
12231223
}
12241224
})
12251225

1226+
directTags.forEach((directTag) => {
1227+
nestedTags.push(directTag)
1228+
})
1229+
12261230
Object.entries(groupedTags).forEach(([parent, children]) => {
12271231
const firstChildTag = children[0]?.fullTag
12281232
if (firstChildTag) {
@@ -1243,10 +1247,6 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
12431247
}
12441248
})
12451249

1246-
directTags.forEach((directTag) => {
1247-
nestedTags.push(directTag)
1248-
})
1249-
12501250
return {
12511251
...group,
12521252
nestedTags,

0 commit comments

Comments
 (0)