|
|
|
@ -122,6 +122,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState(
|
|
|
|
|
|
|
|
|
|
// clear LTAR cell
|
|
|
|
|
const clearLTARCell = async (column: ColumnType) => { |
|
|
|
|
try { |
|
|
|
|
if (!column || column.uidt !== UITypes.LinkToAnotherRecord) return |
|
|
|
|
|
|
|
|
|
const relatedTableMeta = metas.value?.[(<LinkToAnotherRecordType>column?.colOptions)?.fk_related_model_id as string] |
|
|
|
@ -152,9 +153,12 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState(
|
|
|
|
|
column.title as string, |
|
|
|
|
extractPkFromRow(link, relatedTableMeta?.columns as ColumnType[]), |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
currentRow.value.row[column.title!] = [] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (e: any) { |
|
|
|
|
message.error(await extractSdkResponseErrorMsg(e)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|