Browse Source

fix(nc-gui):use computed instead of ref for durationType

pull/4205/head
Wing-Kam Wong 2 years ago
parent
commit
fba0d65f18
  1. 2
      packages/nc-gui/components/cell/Duration.vue

2
packages/nc-gui/components/cell/Duration.vue

@ -29,7 +29,7 @@ const durationInMS = ref(0)
const isEdited = ref(false) const isEdited = ref(false)
const durationType = ref(column?.value?.meta?.duration || 0) const durationType = computed(() => column?.value?.meta?.duration || 0)
const durationPlaceholder = computed(() => durationOptions[durationType.value].title) const durationPlaceholder = computed(() => durationOptions[durationType.value].title)

Loading…
Cancel
Save