1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36: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]) => {
this.props = props;
this.current = current ?? {};
this.props = current ? props : {};
this.current = current;
};
hide = () => {