Skip to content
Snippets Groups Projects
Commit db6731b6 authored by Jens Christian Aanestad's avatar Jens Christian Aanestad
Browse files

bug/Fixed error in mapper constant in NavBar component

parent 531718ab
No related branches found
No related tags found
1 merge request!79Feat/notifications
Pipeline #283289 passed with warnings
......@@ -38,9 +38,9 @@
</a>
<ul v-if="notificationListRef.length > 0" class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li v-for="(item, index) in notificationListRef" :key="index" >
<router-link :to="notificationPathMapper(item.notificationType)" class="d-flex align-items-center">
<router-link :to="notificationPathMapper[String(item.notificationType)]" class="d-flex align-items-center">
<div class="flex-shrink-0">
<img :src="notificationImageMapper(item.notificationType)" alt="Varslingsikon" class="notification-icon">
<img :src="notificationImageMapper[String(item.notificationType)]" alt="Varslingsikon" class="notification-icon">
</div>
<div class="flex-grow-1 ms-3">
<div class="not-item dropdown-item">{{item.message}}</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment