The MoreButton isn't hidden even if there are enough excluded tools
If you exclude all the hideOnToolbar
tools from a tool group, the MoreButton
will still render, because rest
in the ToolGroupComponent will be e.g. [null, null, null]
and thus will have a length of 3.
This can be fixed by checking rest.filter(r => r).length
instead, to not count the nulls.