Skip to content

Commit

Permalink
fix: filter spectrum columns correctly
Browse files Browse the repository at this point in the history
close #2675
  • Loading branch information
hamed-musallam committed Sep 18, 2023
1 parent a281edd commit 785850a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/component/panels/SpectrumsPanel/SpectraPreferences.tsx
Expand Up @@ -98,7 +98,10 @@ function SpectraPreferences(props, ref: any) {
},
});
}, []);
const mapOnChangeValueHandler = useCallback((key) => paths[key], [paths]);
const mapOnChangeValueHandler = useCallback(
(key) => paths?.[key] || key,
[paths],
);
const mapValue = useCallback((value) => convertPathArrayToString(value), []);

return (
Expand Down

0 comments on commit 785850a

Please sign in to comment.