diff --git a/packages/pl-fe/src/components/modal-root.tsx b/packages/pl-fe/src/components/modal-root.tsx index c3217fc4c..ad8939a3c 100644 --- a/packages/pl-fe/src/components/modal-root.tsx +++ b/packages/pl-fe/src/components/modal-root.tsx @@ -141,7 +141,7 @@ const ModalRoot: React.FC = ({ children, onCancel, onClose, type }) const ensureHistoryBuffer = () => { const { state } = history.location; if (!state || (state as any).plFeModalKey !== modalHistoryKey.current) { - history.push(history.location, { ...(state as any), plFeModalKey: modalHistoryKey.current }); + history.push({ ...history.location, state: { ...(state as any), plFeModalKey: modalHistoryKey.current } }); } };