Fixed features showing up when disabled by an ancestor
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import CreatureProperties from '/imports/api/creature/CreatureProperties.js';
|
import getActiveProperties from '/imports/api/creature/getActiveProperties.js';
|
||||||
import ColumnLayout from '/imports/ui/components/ColumnLayout.vue';
|
import ColumnLayout from '/imports/ui/components/ColumnLayout.vue';
|
||||||
import FeatureCard from '/imports/ui/properties/components/features/FeatureCard.vue';
|
import FeatureCard from '/imports/ui/properties/components/features/FeatureCard.vue';
|
||||||
|
|
||||||
@@ -33,13 +33,12 @@
|
|||||||
},
|
},
|
||||||
meteor: {
|
meteor: {
|
||||||
features(){
|
features(){
|
||||||
return CreatureProperties.find({
|
return getActiveProperties({
|
||||||
'ancestors.id': this.creatureId,
|
ancestorId: this.creatureId,
|
||||||
type: 'feature',
|
filter: {
|
||||||
removed: {$ne: true},
|
type: 'feature',
|
||||||
}, {
|
},
|
||||||
sort: {order: 1},
|
});
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user