Browse Source

chore: ignore empty new lines at the end of comments

pull/8629/head
rohittp 6 months ago
parent
commit
e02e2f15b1
  1. 2
      packages/nc-gui/composables/useExpandedFormStore.ts

2
packages/nc-gui/composables/useExpandedFormStore.ts

@ -193,7 +193,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m
await $api.utils.commentRow({
fk_model_id: meta.value?.id as string,
row_id: rowId,
comment: `${comment.value}`,
comment: `${comment.value}`.replace(/(<br \/>)+$/g, ''),
})
reloadTrigger?.trigger()

Loading…
Cancel
Save