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:
parent
64cc47a116
commit
39967c7e9e
3 changed files with 12 additions and 6 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue