Browse Source

fix: pass argument in correct order

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4559/head
Pranav C 2 years ago
parent
commit
c3919db9df
  1. 5
      packages/nc-gui/components/smartsheet/Grid.vue

5
packages/nc-gui/components/smartsheet/Grid.vue

@ -535,7 +535,7 @@ const saveOrUpdateRecords = async (args: { metaValue?: TableType; viewMetaValue?
for (const field of (args.metaValue || meta.value)?.columns ?? []) {
if (isVirtualCol(field)) continue
if (currentRow.row[field.title!] !== currentRow.oldRow[field.title!]) {
await updateOrSaveRow(currentRow, field.title!, args)
await updateOrSaveRow(currentRow, field.title!, {}, args)
}
}
}
@ -655,7 +655,8 @@ const closeAddColumnDropdown = () => {
<thead ref="tableHead">
<tr class="nc-grid-header border-1 bg-gray-100 sticky top[-1px]">
<th data-testid="grid-id-column">
<div class="w-full h-full bg-gray-100 flex min-w-[70px] pl-5 pr-1 items-center" data-testid="nc-check-all">
<div class="w-full h-full bg-gray-100 flex min-w-[70px] pl-5 pr-1 items-center"
data-testid="nc-check-all">
<template v-if="!readOnly">
<div class="nc-no-label text-gray-500" :class="{ hidden: selectedAllRecords }">#</div>
<div

Loading…
Cancel
Save