Skip to content

Commit

Permalink
Merge pull request #547 from uasoft-indonesia/bugfix/repair-sidebar-c…
Browse files Browse the repository at this point in the history
…onsole-error-

Bugfix/repair sidebar console error
  • Loading branch information
rizkiheryandi authored Feb 15, 2022
2 parents 803f321 + c2d2ee4 commit db67e95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/resources/js/components/BadasoSidebarMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {
props: {
defaultIsExpand: {
type: Boolean,
default: true,
default: false,
},
icon: {
type: String,
Expand All @@ -94,7 +94,9 @@ export default {
},
children: {
type: Array,
default: [],
default: () => {
[]
},
},
},
computed: {
Expand Down
6 changes: 3 additions & 3 deletions src/resources/js/layout/admin/sidebar/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<!-- if show header -->
<badaso-sidebar-group
:title="displayMenu.menu.displayName"
:open="displayMenu.menu.isExpand"
:open="displayMenu.menu.isExpand == 1"
:icon="displayMenu.menu.icon"
:key="indexMenu"
v-if="
Expand All @@ -61,7 +61,7 @@
>
<template v-for="(menu, index) in displayMenu.menuItems">
<badaso-sidebar-menu
:defaultIsExpand="menu.isExpand"
:defaultIsExpand="menu.isExpand == 1"
:title="menu.title"
:url="menu.url"
:icon="menu.icon"
Expand All @@ -75,7 +75,7 @@
<div :key="indexMenu" v-else>
<template v-for="(menu, index) in displayMenu.menuItems">
<badaso-sidebar-menu
:defaultIsExpand="menu.isExpand"
:defaultIsExpand="menu.isExpand == 1"
:title="menu.title"
:url="menu.url"
:icon="menu.icon"
Expand Down

0 comments on commit db67e95

Please sign in to comment.