mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 22:24:11 +00:00
chore: disable save params feature (#615)
This commit is contained in:
@@ -51,6 +51,12 @@ export default function ViewParamsEditor({ paramFields }: EditFormDrawerProps) {
|
|||||||
}
|
}
|
||||||
}, [searchParams, onOpen]);
|
}, [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(() => {
|
useEffect(() => {
|
||||||
const viewParamsObjFromLocalStorage = storedViewParams[pathname];
|
const viewParamsObjFromLocalStorage = storedViewParams[pathname];
|
||||||
|
|
||||||
@@ -64,6 +70,8 @@ export default function ViewParamsEditor({ paramFields }: EditFormDrawerProps) {
|
|||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [pathname]);
|
}, [pathname]);
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
const onEditDrawerClose = () => {
|
const onEditDrawerClose = () => {
|
||||||
onClose();
|
onClose();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user