Browse Source

fix: add key to sidebar teleport slot

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4385/head
mertmit 2 years ago
parent
commit
410a7e29c5
  1. 2
      packages/nc-gui/layouts/default.vue

2
packages/nc-gui/layouts/default.vue

@ -20,7 +20,7 @@ export default {
<template> <template>
<div class="w-full h-full"> <div class="w-full h-full">
<Teleport :to="hasSidebar ? '#nc-sidebar-left' : null" :disabled="!hasSidebar"> <Teleport :to="hasSidebar ? '#nc-sidebar-left' : null" :disabled="!hasSidebar">
<slot name="sidebar" /> <slot :key="$route.name" name="sidebar" />
</Teleport> </Teleport>
<a-layout-content> <a-layout-content>

Loading…
Cancel
Save