fix: small typo (#2683)

This commit is contained in:
polemius authored and GitHub committed 2021-10-22 10:23:23 -07:00
1 parent f7b587b5a5
commit b44c15c6eb
1 file changed
+1 -1
+1 -1
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;