Browse Source

Merge pull request #4084 from nocodb/fix/duration-save-on-blur

fix(nc-gui): remove duration from isManualSaved
pull/4118/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
ee014eed4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/nc-gui/components/smartsheet/Cell.vue

5
packages/nc-gui/components/smartsheet/Cell.vue

@ -1,6 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { UITypes } from 'nocodb-sdk'
import type { ColumnType } from 'nocodb-sdk' import type { ColumnType } from 'nocodb-sdk'
import { UITypes } from 'nocodb-sdk'
import { import {
ActiveCellInj, ActiveCellInj,
ColumnInj, ColumnInj,
@ -81,10 +81,11 @@ const isAutoSaved = $computed(() => {
UITypes.AutoNumber, UITypes.AutoNumber,
UITypes.SpecificDBType, UITypes.SpecificDBType,
UITypes.Geometry, UITypes.Geometry,
UITypes.Duration,
].includes(column?.value?.uidt as UITypes) ].includes(column?.value?.uidt as UITypes)
}) })
const isManualSaved = $computed(() => [UITypes.Currency, UITypes.Duration].includes(column?.value?.uidt as UITypes)) const isManualSaved = $computed(() => [UITypes.Currency].includes(column?.value?.uidt as UITypes))
const vModel = computed({ const vModel = computed({
get: () => props.modelValue, get: () => props.modelValue,

Loading…
Cancel
Save