Fixed a bug where registering a property without disabledByToggle breaks recompuation
This commit is contained in:
@@ -224,10 +224,17 @@ function isSkillOperation(prop){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function propDetails(prop){
|
function propDetails(prop){
|
||||||
return propDetailsByType[prop.type] && propDetailsByType[prop.type]() || {};
|
return propDetailsByType[prop.type] && propDetailsByType[prop.type]() ||
|
||||||
|
propDetailsByType.default();
|
||||||
}
|
}
|
||||||
|
|
||||||
const propDetailsByType = {
|
const propDetailsByType = {
|
||||||
|
default(){
|
||||||
|
return {
|
||||||
|
toggleAncestors: [],
|
||||||
|
disabledByToggle: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
toggle(){
|
toggle(){
|
||||||
return {
|
return {
|
||||||
computed: false,
|
computed: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user