Fixed some issues with effect tag targeting
This commit is contained in:
@@ -178,8 +178,8 @@ function getTargetListFromTags(tags, computation){
|
||||
const targetTagIdLists = [];
|
||||
if (!tags) return [];
|
||||
tags.forEach(tag => {
|
||||
const idList = computation.propsWithTag[tag];
|
||||
if (idList) targetTagIdLists.push(idList);
|
||||
const idList = computation.propsWithTag[tag] || [];
|
||||
targetTagIdLists.push(idList);
|
||||
});
|
||||
const targets = intersection(...targetTagIdLists);
|
||||
return targets;
|
||||
|
||||
@@ -28,6 +28,7 @@ function computedOnlyField(field){
|
||||
[`${field}.effects`]: {
|
||||
type: Array,
|
||||
optional: true,
|
||||
removeBeforeCompute: true,
|
||||
},
|
||||
[`${field}.effects.$`]: {
|
||||
type: Object,
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
<div
|
||||
v-if="calculation && calculation.effects"
|
||||
class="flex-grow-1"
|
||||
style="max-width: 100%;"
|
||||
>
|
||||
<inline-effect
|
||||
v-if="typeof calculation.value === 'number'"
|
||||
|
||||
Reference in New Issue
Block a user