Browse Source

code cleanup

pull/5035/head
Daniel Spaude 2 years ago
parent
commit
ae62b78e73
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 2
      packages/nc-gui/components/smartsheet/Gallery.vue
  2. 3
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

2
packages/nc-gui/components/smartsheet/Gallery.vue

@ -82,7 +82,6 @@ const isRowEmpty = (record: any, col: any) => {
return Array.isArray(val) && val.length === 0
}
// const { xWhere, isPkAvail, isSqlView, eventBus } = useSmartsheetStoreOrThrow()
const { isSqlView } = useSmartsheetStoreOrThrow()
const attachments = (record: any): Attachment[] => {
@ -223,7 +222,6 @@ const showContextMenu = (e: MouseEvent, target?: { row: number }) => {
</a-menu>
</template>
<div class="nc-gallery-container grid gap-2 my-4 px-3">
<!-- v-for="(row, rowIndex) of data -->
<div v-for="(record, rowIndex) in data" :key="`record-${record.row.id}`">
<LazySmartsheetRow :row="record">
<a-card

3
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -43,8 +43,6 @@ const { t } = useI18n()
const row = ref(props.row)
const isDuplicatedRow = ref(false)
const state = toRef(props, 'state')
const meta = toRef(props, 'meta')
@ -109,7 +107,6 @@ const onClose = () => {
const onDuplicateRow = () => {
duplicatingRowInProgress.value = true
isDuplicatedRow.value = true
const newRow = Object.assign(
{},
{

Loading…
Cancel
Save