Browse Source

fix(nc-gui): view create error

pull/7611/head
DarkPhoenix2704 9 months ago
parent
commit
bd2f150fb7
  1. 2
      packages/nc-gui/components/dlg/ViewCreate.vue
  2. 3
      packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue

2
packages/nc-gui/components/dlg/ViewCreate.vue

@ -227,7 +227,7 @@ async function onSubmit() {
const addCalendarRange = async () => { const addCalendarRange = async () => {
form.calendarRange.push({ form.calendarRange.push({
fk_from_column_id: viewSelectFieldOptions.value[0], fk_from_column_id: viewSelectFieldOptions.value[0].value,
fk_to_column_id: null, fk_to_column_id: null,
}) })
} }

3
packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue

@ -94,9 +94,10 @@ const dateFieldOptions = computed<SelectProps['options']>(() => {
// To add new calendar range // To add new calendar range
const addCalendarRange = async () => { const addCalendarRange = async () => {
_calendar_ranges.value.push({ _calendar_ranges.value.push({
fk_from_column_id: dateFieldOptions.value[0], fk_from_column_id: dateFieldOptions.value[0].value,
fk_to_column_id: null, fk_to_column_id: null,
}) })
await saveCalendarRanges()
} }
const removeRange = async (id: number) => { const removeRange = async (id: number) => {

Loading…
Cancel
Save