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) expandForm(newRow)
}) })
onMounted(() => { onMounted(async () => {
// reset state to avoid from showing the previous stacks when switching kanban views // reset state to avoid from showing the previous stacks when switching kanban views
groupingFieldColOptions.value = [] groupingFieldColOptions.value = []
formattedData.value = {} formattedData.value = {}
// load kanban meta
await loadKanbanMeta()
// load kanban data
await loadKanbanData()
}) })
</script> </script>

Loading…
Cancel
Save