Browse Source

fix: Fixed issue with workspace icon bugging out due its color being undefined

pull/6680/head
Muhammed Mustafa 1 year ago
parent
commit
ab83612fff
  1. 7
      packages/nc-gui/components/general/WorkspaceIcon.vue

7
packages/nc-gui/components/general/WorkspaceIcon.vue

@ -8,9 +8,10 @@ const props = defineProps<{
size?: 'small' | 'medium' | 'large' size?: 'small' | 'medium' | 'large'
}>() }>()
const workspaceColor = computed(() => const workspaceColor = computed(() => {
props.workspace ? props.workspace.meta?.color || stringToColor(props.workspace.id!) : undefined, const color = props.workspace ? props.workspace.meta?.color || stringToColor(props.workspace.id!) : undefined
) return color || '#0A1433'
})
const size = computed(() => props.size || 'medium') const size = computed(() => props.size || 'medium')
</script> </script>

Loading…
Cancel
Save