Skip to content

Commit 1152f35

Browse files
committed
fix: updated dashboard
1 parent 0422390 commit 1152f35

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

objectified-ui/src/app/components/Dashboard.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import MenuButton from "@/app/components/common/MenuButton";
3333
import {putUser} from "@/app/services/user";
3434
import {errorDialog} from "@/app/components/common/ConfirmDialog";
3535

36-
const VERSION = '0.1.12';
36+
const VERSION = '0.1.13';
3737

3838
const NavItems = [
3939
{
@@ -254,10 +254,11 @@ const Dashboard = ({ children }: { children?: React.ReactNode }) => {
254254
<div style={{ position: 'fixed', width: '130px', height: 'calc(100% - 68px)', borderRight: '1px solid #ccc' }}
255255
className={'bg-slate-100'}>
256256
<MenuList style={{ padding: '0px' }} dense>
257-
{NavItems.map((x) => (
257+
{NavItems.map((x, count: number) => (
258258
<ListItemButton style={{ padding: '0px', paddingLeft: '10px', }}
259259
onClick={() => router.push(x.url)}
260-
className={`${selectedColor(x.url)}`}>
260+
className={`${selectedColor(x.url)}`}
261+
key={`list-item-${count}`}>
261262
<ListItemText>
262263
<Typography className={'font-thin text-sm'}>
263264
{x.label}

0 commit comments

Comments
 (0)