Commit f4f5eeeb by Torkel Ödegaard

Pamels: Options are always there

parent e03c7bf1
...@@ -9,15 +9,13 @@ const optionsToKeep = ['valueOptions', 'stat', 'maxValue', 'maxValue', 'threshol ...@@ -9,15 +9,13 @@ const optionsToKeep = ['valueOptions', 'stat', 'maxValue', 'maxValue', 'threshol
export const singleStatBaseOptionsCheck = ( export const singleStatBaseOptionsCheck = (
options: Partial<SingleStatBaseOptions>, options: Partial<SingleStatBaseOptions>,
prevPluginId: string, prevPluginId: string,
prevOptions?: any prevOptions: any
) => { ) => {
if (prevOptions) { optionsToKeep.forEach(v => {
optionsToKeep.forEach(v => { if (prevOptions.hasOwnProperty(v)) {
if (prevOptions.hasOwnProperty(v)) { options[v] = cloneDeep(prevOptions.display);
options[v] = cloneDeep(prevOptions.display); }
} });
});
}
return options; return options;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment