Browse Source

chore(nc-gui): lint

pull/8901/head
Ramesh Mane 5 months ago
parent
commit
3ce5674968
  1. 13
      packages/nc-gui/components/smartsheet/toolbar/FieldListWithSearch.vue

13
packages/nc-gui/components/smartsheet/toolbar/FieldListWithSearch.vue

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { isSystemColumn, type ColumnType } from 'nocodb-sdk' import { type ColumnType, isSystemColumn } from 'nocodb-sdk'
const props = defineProps<{ const props = defineProps<{
// As we need to focus search box when the parent is opened // As we need to focus search box when the parent is opened
@ -13,21 +13,14 @@ const props = defineProps<{
const emits = defineEmits<{ selected: [ColumnType] }>() const emits = defineEmits<{ selected: [ColumnType] }>()
const { const { isParentOpen, toolbarMenu, searchInputPlaceholder, selectedOptionId, showSelectedOption } = toRefs(props)
isParentOpen,
toolbarMenu,
searchInputPlaceholder,
selectedOptionId,
options: _options,
showSelectedOption,
} = toRefs(props)
const { fieldsMap } = useViewColumnsOrThrow() const { fieldsMap } = useViewColumnsOrThrow()
const searchQuery = ref('') const searchQuery = ref('')
const options = computed(() => const options = computed(() =>
(_options.value || []) (props.options || [])
.map((c) => c) .map((c) => c)
.sort((field1, field2) => { .sort((field1, field2) => {
// sort by view column order and keep system columns at the end // sort by view column order and keep system columns at the end

Loading…
Cancel
Save