@asaleh37/ui-base 25.6.19-5 → 25.6.19-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.6.19-5",
3
+ "version": "25.6.19-7",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -236,7 +236,6 @@ export default function NavigationTree() {
236
236
  const isMobile = useIsMobile();
237
237
  const { isUserAuthorized } = useSession();
238
238
  const filterData = (data) => {
239
- console.log("filterDate", data);
240
239
  const parentItems = [];
241
240
  for (let parentItem of data) {
242
241
  if (
@@ -256,11 +255,13 @@ export default function NavigationTree() {
256
255
 
257
256
  const mergedNavigationItems = [];
258
257
  if (AppInfo.enableAdministrationModule) {
259
- mergedNavigationItems.push(structuredClone(NavigationItems));
258
+ mergedNavigationItems.push(...structuredClone(NavigationItems));
260
259
  }
261
- mergedNavigationItems.push(structuredClone(AppInfo.businessNavigationItems));
260
+ mergedNavigationItems.push(
261
+ ...structuredClone(AppInfo.businessNavigationItems)
262
+ );
262
263
  const authoriedNavigationItems = filterData(mergedNavigationItems);
263
-
264
+ console.log("authoriedNavigationItems", authoriedNavigationItems);
264
265
  return (
265
266
  <RichTreeView
266
267
  items={authoriedNavigationItems}