Browse Source

feat(nc-gui): add loadKanbanMeta & loadKanbanData in onMounted

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
b6ffb872d7
  1. 6
      packages/nc-gui/components/smartsheet/Kanban.vue

6
packages/nc-gui/components/smartsheet/Kanban.vue

@ -179,10 +179,14 @@ openNewRecordFormHook?.on(async (stackTitle) => {
expandForm(newRow)
})
onMounted(() => {
onMounted(async () => {
// reset state to avoid from showing the previous stacks when switching kanban views
groupingFieldColOptions.value = []
formattedData.value = {}
// load kanban meta
await loadKanbanMeta()
// load kanban data
await loadKanbanData()
})
</script>

Loading…
Cancel
Save