feat(components): Return if document is undefined
This commit is contained in:
+2
-1
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user