1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed modal provider

This commit is contained in:
Fedor Katurov 2022-01-08 16:44:09 +07:00
parent 5849e68258
commit 5b28313afd

View file

@ -11,8 +11,8 @@ export class ModalStore {
} }
setCurrent = <T extends Dialog>(current: T, props: DialogContentProps[T]) => { setCurrent = <T extends Dialog>(current: T, props: DialogContentProps[T]) => {
this.props = props; this.props = current ? props : {};
this.current = current ?? {}; this.current = current;
}; };
hide = () => { hide = () => {