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

fixed node editor

This commit is contained in:
Fedor Katurov 2021-11-21 21:30:43 +07:00
parent 64cc47a116
commit 39967c7e9e
3 changed files with 12 additions and 6 deletions

View file

@ -5,6 +5,7 @@ import { ModalWrapper } from '~/components/dialogs/ModalWrapper';
import { LoaderCircle } from '~/components/input/LoaderCircle';
import styles from './styles.module.scss';
import { useGetNode } from '~/utils/hooks/data/useGetNode';
import { EMPTY_NODE } from '~/redux/node/constants';
const EditorEditDialog: FC = () => {
const history = useHistory();
@ -34,7 +35,7 @@ const EditorEditDialog: FC = () => {
);
}
return <EditorDialog node={node} onRequestClose={goBack} />;
return <EditorDialog node={node || EMPTY_NODE} onRequestClose={goBack} />;
};
export { EditorEditDialog };