fix: small typo (#2683)

This commit is contained in:
polemius 2021-10-22 19:23:23 +02:00 committed by GitHub
parent f7b587b5a5
commit b44c15c6eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const Submenu = React.forwardRef(({ templateItems, title, ...rest }, ref) => {
export function filterTemplateItems(items: TMenuItem[]): TMenuItem[] {
let filtered = items.filter((item) => item.visible !== false);
// this block literally just trims unneccessary separators
// this block literally just trims unnecessary separators
filtered = filtered.reduce((acc, item, index) => {
// trim separators from start / end
if (item.type === "separator" && index === 0) return acc;