Browse Source

Merge pull request #4503 from nocodb/fix/duplicate-wrapper-element

Fix: Sidebar - add key to sidebar slot to avoid duplicate wrapper elements
pull/4506/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
3be44b0574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/layouts/default.vue

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

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

Loading…
Cancel
Save