From 913e3c6bfabb794dee4dc15095465d0d4da37f1e Mon Sep 17 00:00:00 2001 From: mesqueeb Date: Mon, 18 Dec 2023 09:18:20 -0600 Subject: [PATCH] fix: table issue --- packages/ui/src/components/MagnetarTable.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/ui/src/components/MagnetarTable.vue b/packages/ui/src/components/MagnetarTable.vue index 801102f2..09cb7d31 100644 --- a/packages/ui/src/components/MagnetarTable.vue +++ b/packages/ui/src/components/MagnetarTable.vue @@ -4,22 +4,22 @@ import { useElementSize } from '@vueuse/core' import { isAnyObject, isArray, isError, isPlainObject } from 'is-what' import { computed, nextTick, onMounted, ref, watch } from 'vue' import { - FiltersState, FilterState, + FiltersState, MUIColumn, MUIFilter, MUILabel, - muiLabelDic, MUIPagination, MUIParseLabel, OPaths, OrderByState, + muiLabelDic, } from '../types' import { calcCollection, carbonCopyMap, - filtersAndColumnsToInitialState, filterStateToClauses, + filtersAndColumnsToInitialState, getRequiredOrderByBasedOnFilters, mapUnshift, orderByStateToClauses, @@ -157,9 +157,7 @@ function clearState(): void { fetchMore() } -const hasFetchLimit = computed( - () => props.pagination.limit <= 0 || props.pagination.limit === Infinity -) +const hasFetchLimit = computed(() => props.pagination.limit > 0) const minH = ref(26) const minW = ref(26) const tableEl = ref(null)