chore: disable save params feature (#615)

This commit is contained in:
Carlos Valente
2023-11-24 18:29:37 +01:00
committed by GitHub
parent 5be60ff6c3
commit 804e4ad33e
@@ -51,6 +51,12 @@ export default function ViewParamsEditor({ paramFields }: EditFormDrawerProps) {
}
}, [searchParams, onOpen]);
/**
* disabling this for now, this feature needs more testing
* - we seem to have a bug where this is conflicting with the aliases
* - I wonder if the logic below needs to be inside an effect,
* both localStorage and searchParams should trigger a component update when they change
useEffect(() => {
const viewParamsObjFromLocalStorage = storedViewParams[pathname];
@@ -64,6 +70,8 @@ export default function ViewParamsEditor({ paramFields }: EditFormDrawerProps) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [pathname]);
*/
const onEditDrawerClose = () => {
onClose();