Fix: unique element key generation in quicklaunch and services (#2586)

This commit is contained in:
shamoon
2024-01-06 09:22:25 -08:00
committed by GitHub
parent 1c47d9d70e
commit 50c989e36a
2 changed files with 2 additions and 2 deletions

View File

@@ -199,7 +199,7 @@ export default function QuickLaunch({
{results.length > 0 && (
<ul className="max-h-[60vh] overflow-y-auto m-2">
{results.map((r, i) => (
<li key={r.container ?? r.app ?? `${r.name}-${r.href}`}>
<li key={[r.name, r.container, r.app, r.href].filter((s) => s).join("-")}>
<button
type="button"
data-index={i}