Browse Source

Merge pull request #6680 from nocodb/fix/workspace-icon-bug

Fixed issue with workspace icon bugging out due its color being undefined
pull/6687/head
Raju Udava 1 year ago committed by GitHub
parent
commit
f8bce2753d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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'
}>()
const workspaceColor = computed(() =>
props.workspace ? props.workspace.meta?.color || stringToColor(props.workspace.id!) : undefined,
)
const workspaceColor = computed(() => {
const color = props.workspace ? props.workspace.meta?.color || stringToColor(props.workspace.id!) : undefined
return color || '#0A1433'
})
const size = computed(() => props.size || 'medium')
</script>

Loading…
Cancel
Save