From ab83612fffcc5bb100c4ff941b5b9cdc9fcafa55 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 13 Oct 2023 13:18:51 +0530 Subject: [PATCH] fix: Fixed issue with workspace icon bugging out due its color being undefined --- packages/nc-gui/components/general/WorkspaceIcon.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/general/WorkspaceIcon.vue b/packages/nc-gui/components/general/WorkspaceIcon.vue index 4f049b64eb..1735cae134 100644 --- a/packages/nc-gui/components/general/WorkspaceIcon.vue +++ b/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')