Let effects autofill skills as well as attributes

This commit is contained in:
Thaum Rystra
2020-05-15 14:29:07 +02:00
parent 5f95471bb6
commit cd8a557120
2 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import createListOfProperties from '/imports/ui/properties/forms/shared/lists/cr
const attributeListMixin = {
meteor: {
attributeList(){
return createListOfProperties({type: 'attribute'});
return createListOfProperties({type: {$in: ['attribute', 'skill']}});
},
},
};

View File

@@ -15,7 +15,8 @@ export default function createListOfProperties(filter = {}){
});
}
}
CreatureProperties.find(filter).forEach(addUniquePropertys);
LibraryNodes.find(filter).forEach(addUniquePropertys);
let options = {sort: {variableName: 1}}
CreatureProperties.find(filter, options).forEach(addUniquePropertys);
LibraryNodes.find(filter, options).forEach(addUniquePropertys);
return Array.from(variableNames);
}