Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
name,
vectorComponent,
] = this.activeProxyData.colorBy.array;
const mode =
location && name.length && this.activeProxyData.colorBy.mode;
this.vectorComponent = vectorComponent;
// console.log(JSON.stringify(this.activeProxyData.colorBy, null, 2));
if (mode !== 'array') {
return SOLID_COLOR_ITEM;
}
// Fetch LookupTable for any array available
if (!this.lookupTables[name]) {
this.$store.dispatch(Actions.COLOR_FETCH_LOOKUP_IMAGE, name);
}
return {
text: name,
value: `${mode}${SEPARATOR}${location}${SEPARATOR}${name}`,
};
}
return SOLID_COLOR_ITEM;
},
representationItems() {
client.remote.Lite.applyPreset(arrayName, presetName).then(() => {
dispatch(Actions.COLOR_FETCH_LOOKUP_IMAGE, arrayName);
});
}