fix(TypeError): Cannot read properties of undefined (reading 'toLowerCase')

This commit is contained in:
Ramesh Mane
2026-01-17 10:29:18 +00:00
parent 0c83158b6d
commit e8fe442fce
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ export default {
:class="[
selected || isHovering ? 'opacity-100' : 'opacity-0 !pointer-events-none',
showSkeleton ? '!text-6xl' : '!text-xs',
`nc-erd-table-label-${data.label.toLowerCase().replace(' ', '-').replace('\(', '').replace(')', '')}`,
`nc-erd-table-label-${data.label?.toLowerCase()?.replace(' ', '-')?.replace('\(', '')?.replace(')', '')}`,
]"
>
<!-- Show only simple label which is `sourceTable relationType targetTable` -->

View File

@@ -93,7 +93,7 @@ watch(
<div
v-if="isLinksOrLTAR(col)"
class="flex w-full"
:class="`nc-erd-table-node-${table.table_name}-column-${col.title?.toLowerCase().replace(' ', '_')}`"
:class="`nc-erd-table-node-${table.table_name}-column-${col.title?.toLowerCase()?.replace(' ', '_')}`"
>
<Handle
:id="`s-${relatedColumnId(col.colOptions)}-${table.id}`"