Skip to content

Commit 83f4c41

Browse files
committed
Minor: try to fix docs for filter
1 parent c766e27 commit 83f4c41

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/components/Filters/Filters.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,8 @@ const buttonClassName = classNames(styles.FilterTrigger);
320320
const transformedFilters = computed(() => transformFilters(props.filters));
321321
322322
const hasAppliedFilters = computed<boolean>(() => {
323-
const {appliedFilters, modelValue} = props;
324-
const filtersApplied = Boolean(appliedFilters && appliedFilters.length > 0);
325-
const queryApplied = Boolean(modelValue && modelValue !== '');
323+
const filtersApplied = Boolean(props.appliedFilters && props.appliedFilters.length > 0);
324+
const queryApplied = Boolean(props.modelValue && props.modelValue !== '');
326325
327326
return filtersApplied || queryApplied;
328327
});

src/components/Filters/README.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const Template = (args) => ({
8383
const accountStatus = ref([]);
8484
const moneySpent = ref([]);
8585
const taggedWith = ref(null);
86-
const queryValue = ref(null);
86+
const queryValue = ref('');
8787
const appliedFilters = computed(() => {
8888
const tmpFilters = [];
8989
if (accountStatus.value && accountStatus.value.length > 0) {

src/components/IndexTable/README.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export const Template = (args) => ({
277277
const { selectedResources, allResourcesSelected, handleSelectionChange } =
278278
useIndexResourceState(customers);
279279
const taggedWith = ref('VIP');
280-
const queryValue = ref(null);
280+
const queryValue = ref('');
281281
const sortValue = ref('today');
282282
const handleTaggedWithChange = (value) => { taggedWith.value = value };
283283
const handleTaggedWithRemove = () => { taggedWith.value = null };

0 commit comments

Comments
 (0)