diff --git a/client/src/utils/AkhqRoutes.jsx b/client/src/utils/AkhqRoutes.jsx index 4ba368289..53aba0a48 100644 --- a/client/src/utils/AkhqRoutes.jsx +++ b/client/src/utils/AkhqRoutes.jsx @@ -159,7 +159,7 @@ class AkhqRoutes extends Root { } /> )} - {roles && roles.TOPIC && roles.TOPIC_DATA.includes('CREATE') && ( + {roles && roles.TOPIC_DATA && roles.TOPIC_DATA.includes('CREATE') && ( )} - {roles && roles.TOPIC && roles.TOPIC_DATA.includes('CREATE') && ( + {roles && roles.TOPIC_DATA && roles.TOPIC_DATA.includes('CREATE') && ( )} - {roles && roles.TOPIC && roles.TOPIC_DATA.includes('CREATE') && ( + {roles && roles.TOPIC_DATA && roles.TOPIC_DATA.includes('CREATE') && ( } /> )} @@ -187,7 +187,7 @@ class AkhqRoutes extends Root { /> )} - {roles && roles.TOPIC && roles.TOPIC_DATA.includes('READ') && ( + {roles && roles.TOPIC_DATA && roles.TOPIC_DATA.includes('READ') && ( } /> )}