From a77cf96e6ad8da5083d866b6c7b887d1224597ae Mon Sep 17 00:00:00 2001 From: Lisa Stillwell Date: Fri, 11 Oct 2024 18:00:08 -0400 Subject: [PATCH] catch more changes for colormap updates --- src/components/trays/settings/colormaps/style-edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/trays/settings/colormaps/style-edit.js b/src/components/trays/settings/colormaps/style-edit.js index 0307f0c..2790d2b 100644 --- a/src/components/trays/settings/colormaps/style-edit.js +++ b/src/components/trays/settings/colormaps/style-edit.js @@ -129,7 +129,7 @@ export const StyleEditor = () => { // and now has been changed to ramp // in that case we have modify the last colormap entry else { - if ((value.type === "ramp") && (value.colorMapEntries[value.colorMapEntries.length-1].label.includes(">="))) { + if (value.colorMapEntries[value.colorMapEntries.length-1].label.includes(">=")) { const last = value.colorMapEntries.length-1; value.colorMapEntries[last].quantity = parseFloat(value.colorMapEntries[last].label.match(/[+-]?\d+(\.\d+)?/g)).toFixed(2); const labelParts = value.colorMapEntries[last].label.split(" ");