diff --git a/src/store/modal/ModalStore.tsx b/src/store/modal/ModalStore.tsx index 8d52170d..784a1b44 100644 --- a/src/store/modal/ModalStore.tsx +++ b/src/store/modal/ModalStore.tsx @@ -11,8 +11,8 @@ export class ModalStore { } setCurrent = (current: T, props: DialogContentProps[T]) => { - this.props = props; - this.current = current ?? {}; + this.props = current ? props : {}; + this.current = current; }; hide = () => {