mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-26 21:34:27 +00:00
Fix navigator extra space issue (#981)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
18fe8b609b
commit
a383b90430
@ -55,10 +55,15 @@
|
||||
specTopCount = topSpecials.length
|
||||
bottomSpecials = await getSpecials(model.specials, 'bottom', spaces)
|
||||
specBottomCount = bottomSpecials.length
|
||||
} else {
|
||||
topSpecials = []
|
||||
bottomSpecials = []
|
||||
specBottomCount = 0
|
||||
specTopCount = 0
|
||||
}
|
||||
if (model.spaces) spModelCount = model.spaces.length
|
||||
shownSpaces = spaces.filter(sp => !sp.archived)
|
||||
showDivider = (specTopCount > 0 && specBottomCount + spModelCount > 0) ? true : false
|
||||
showDivider = !!((specTopCount > 0 && specBottomCount + spModelCount > 0))
|
||||
}
|
||||
|
||||
$: if (model) update(model, spaces)
|
||||
|
Loading…
Reference in New Issue
Block a user