Fixed a bug where registering a property without disabledByToggle breaks recompuation

This commit is contained in:
Stefan Zermatten
2020-06-24 18:20:56 +02:00
parent d36d5b15d0
commit e1ddfb2cab

View File

@@ -224,10 +224,17 @@ function isSkillOperation(prop){
}
function propDetails(prop){
return propDetailsByType[prop.type] && propDetailsByType[prop.type]() || {};
return propDetailsByType[prop.type] && propDetailsByType[prop.type]() ||
propDetailsByType.default();
}
const propDetailsByType = {
default(){
return {
toggleAncestors: [],
disabledByToggle: false,
};
},
toggle(){
return {
computed: false,