Browse Source

Merge pull request #9736 from nocodb/nc-calendar-bug-sidebar

fix: data in sidebar not getting updated
pull/9738/head
Anbarasu 2 months ago committed by GitHub
parent
commit
e2344924b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      packages/nc-gui/composables/useCalendarViewStore.ts

10
packages/nc-gui/composables/useCalendarViewStore.ts

@ -787,6 +787,16 @@ const [useProvideCalendarViewStore, useCalendarViewStore] = useInjectionState(
Object.assign(toUpdate.oldRow, updatedRowData)
}
const upPk = extractPkFromRow(updatedRowData, meta?.value?.columns as ColumnType[])
formattedSideBarData.value = formattedSideBarData.value.map((row) => {
if (extractPkFromRow(row.row, meta?.value?.columns as ColumnType[]) === upPk) {
Object.assign(row.row, updatedRowData)
Object.assign(row.oldRow, updatedRowData)
}
return row
})
await fetchActiveDates()
return updatedRowData
} catch (e: any) {

Loading…
Cancel
Save