mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 21:17:06 +00:00
feat: Formula GQL support, replace column name with alias
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -803,9 +803,13 @@ export default {
|
||||
}
|
||||
|
||||
const id = this.meta.columns.filter(c => c.pk).map(c => rowObj[c._cn]).join('___')
|
||||
await this.api.update(id, {
|
||||
|
||||
const newData = await this.api.update(id, {
|
||||
[column._cn]: rowObj[column._cn]
|
||||
}, { [column._cn]: oldRow[column._cn] })
|
||||
|
||||
this.$set(this.data[row], 'row', { ...rowObj, ...newData })
|
||||
|
||||
this.$set(oldRow, column._cn, rowObj[column._cn])
|
||||
this.$toast.success(`${rowObj[this.primaryValueColumn] ? `${rowObj[this.primaryValueColumn]}'s c` : 'C'}olumn '${column.cn}' updated successfully.`, {
|
||||
position: 'bottom-center'
|
||||
|
||||
Reference in New Issue
Block a user