Browse Source

fix(gui): use key as index to avoid re-rendering row when new record saved

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

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

@ -433,7 +433,7 @@ watch([() => selected.row, () => selected.col], ([row, col]) => {
<LazySmartsheetRow
v-for="(row, rowIndex) of data"
ref="rowRefs"
:key="extractPkFromRow(row.row, meta.columns) ?? rowIndex"
:key="rowIndex"
:row="row"
>
<template #default="{ state }">

Loading…
Cancel
Save