@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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/layout/NavigationTree.tsx +5 -4
package/package.json
CHANGED
|
@@ -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(
|
|
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}
|