generated from Luis/nextjs-python-web-template
filter out AP and DLG entities
This commit is contained in:
@@ -92,7 +92,9 @@ export function Sidebar(props: SidebarProps) {
|
||||
React.useEffect(() => {
|
||||
if (entityData) {
|
||||
menuEntityEntries = Array.isArray(entityData.data)
|
||||
? entityData.data.map((entity) => ({
|
||||
? entityData.data
|
||||
.filter((entity) => entity.name !== "AP" && entity.name !== "DLG")
|
||||
.map((entity) => ({
|
||||
icon: <PersonIcon />,
|
||||
label: entity.name,
|
||||
to: `/client/${entity.name}`,
|
||||
|
||||
Reference in New Issue
Block a user