mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 01:25:00 +02:00
UBER-963: Related issues (#3773)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ export function getStates (space: SpaceWithStates | undefined, statusStore: IdMa
|
||||
return []
|
||||
}
|
||||
|
||||
const states = space.states.map((x) => statusStore.get(x) as Status).filter((p) => p !== undefined)
|
||||
const states = (space.states ?? []).map((x) => statusStore.get(x) as Status).filter((p) => p !== undefined)
|
||||
|
||||
return states
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user