mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 10:27:26 +00:00
fix: handle duplicate edge case for sidebar loading
This changes the SideBar's data prop to be filtered by id instead of key. fixes issue #308
This commit is contained in:
@@ -549,7 +549,7 @@ export default function Dashboard() {
|
|||||||
toggleSidebar={toggleSidebar}
|
toggleSidebar={toggleSidebar}
|
||||||
data={data.filter(
|
data={data.filter(
|
||||||
(row: SecretDataProps) =>
|
(row: SecretDataProps) =>
|
||||||
row.key === data.filter((r) => r.id === sidebarSecretId)[0]?.key
|
row.id === sidebarSecretId
|
||||||
)}
|
)}
|
||||||
modifyKey={listenChangeKey}
|
modifyKey={listenChangeKey}
|
||||||
modifyValue={listenChangeValue}
|
modifyValue={listenChangeValue}
|
||||||
|
|||||||
Reference in New Issue
Block a user