From 1aeb3a3b634374be05591eb77c8b7ebc4e6c8581 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 30 Nov 2022 20:52:30 -0800 Subject: [PATCH] Add a perfunctory key to --- src/components/quicklaunch.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/quicklaunch.jsx b/src/components/quicklaunch.jsx index 0427022dc..050de448f 100644 --- a/src/components/quicklaunch.jsx +++ b/src/components/quicklaunch.jsx @@ -107,7 +107,8 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear function highlightText(text) { const parts = text.split(new RegExp(`(${searchString})`, 'gi')); - return {parts.map(part => part.toLowerCase() === searchString.toLowerCase() ? {part} : part)}; + // eslint-disable-next-line react/no-array-index-key + return {parts.map((part, i) => part.toLowerCase() === searchString.toLowerCase() ? {part} : part)}; } return (