Skip to content

Commit

Permalink
Merge pull request #4197 from systeminit/fix/duplicated-actions
Browse files Browse the repository at this point in the history
Fix: actions duplicated, filter bindings for just this variant
  • Loading branch information
jobelenus authored Jul 23, 2024
2 parents a2e3741 + 8b4b39a commit 68ab17a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/web/src/components/AssetActionsDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ const bindings = computed(() => {
];
variant?.funcIds.forEach((funcId) => {
const summary = funcStore.funcsById[funcId];
const actions = funcStore.actionBindings[funcId];
const actions = funcStore.actionBindings[funcId]?.filter(
(b) =>
b.schemaVariantId ===
componentsStore.selectedComponent?.schemaVariantId,
);
if (actions && actions.length > 0) {
actions.forEach((b) => {
const a = _.cloneDeep(b) as BindingWithDisplayName;
Expand Down

0 comments on commit 68ab17a

Please sign in to comment.