[core] added computation when accessing promised store in EssentialExpansionLink

fixes #9
This commit is contained in:
groegert 2021-05-25 12:46:54 +02:00
parent 625ac55b0a
commit 86bad83e53
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export default defineComponent({
},
setup(props, { emit }) {
function isGranted(val: FG_Plugin.MenuLink) {
return hasPermissions(val.permissions || []);
return computed(() => hasPermissions(val.permissions || []));
}
const title = computed(() =>
typeof props.entry.title === 'function' ? props.entry.title() : props.entry.title