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