update(store): remove promise from setState

* add default values for nodeTypes/edgeTypes - empty array for customs

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-25 15:21:36 +01:00
parent fd83a6d365
commit 233e915376
3 changed files with 13 additions and 7 deletions
+2
View File
@@ -22,6 +22,8 @@ export const initialState = (): FlowState => ({
},
transform: [0, 0, 1],
elements: [],
nodeTypes: [],
edgeTypes: [],
selectedElements: undefined,
selectedNodesBbox: { x: 0, y: 0, width: 0, height: 0 },