feat(components): Return if document is undefined

This commit is contained in:
Przemysław Żydek
2021-03-22 11:36:10 +01:00
parent 96290483b1
commit a7e0ace550
5 changed files with 16 additions and 8 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
import configureStore from './configure-store';
import { ReactFlowState, ConnectionMode } from '../types';
import { getInitialDocument } from '../utils/document';
export const initialState: ReactFlowState = {
document: window.document,
document: getInitialDocument(),
width: 0,
height: 0,
transform: [0, 0, 1],