Added spells tab

This commit is contained in:
Stefan Zermatten
2020-03-13 12:02:57 +02:00
parent c1aacb9ebe
commit 24725381d7
6 changed files with 167 additions and 27 deletions

View File

@@ -24,6 +24,9 @@ const allowedParenting = {
const allParentTypes = new Set(flatten(Object.values(allowedParenting)));
export function canBeParent(type){
return true;
//TODO until there is a good reason to disallow certain parenting options,
// this should just let the user do whatever
return type && allParentTypes.has(type);
}