Browse Source

fix(nc-gui): console errors

pull/7807/head
Ramesh Mane 9 months ago
parent
commit
0bff1c2ce2
  1. 25
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

25
packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

@ -423,18 +423,19 @@ const projectDelete = () => {
<div v-e="['c:base:iconColorChange']" class="flex items-center select-none w-6 h-full">
<a-spin v-if="base.isLoading" class="!ml-1.25 !flex !flex-row !items-center !my-0.5 w-8" :indicator="indicator" />
<GeneralBaseIconColorPicker
v-else
:key="`${base.id}_${parseProp(base.meta).iconHue}`"
:hue="parseProp(base.meta).iconHue"
size="small"
:readonly="base?.type && base?.type !== 'database'"
@color-selected="setColor($event, base)"
>
<template #default>
<GeneralProjectIcon :type="base?.type" />
</template>
</GeneralBaseIconColorPicker>
<div v-else>
<GeneralBaseIconColorPicker
:key="`${base.id}_${parseProp(base.meta).iconHue}`"
:hue="parseProp(base.meta).iconHue"
size="small"
:readonly="base?.type && base?.type !== 'database'"
@color-selected="setColor($event, base)"
>
<template #default>
<GeneralProjectIcon :type="base?.type" />
</template>
</GeneralBaseIconColorPicker>
</div>
</div>
</div>

Loading…
Cancel
Save