Skip to content

Commit

Permalink
Merge pull request #23 from heseya/feature/root-product-set-param
Browse files Browse the repository at this point in the history
fix: fixed root category param
  • Loading branch information
demtario authored Jun 6, 2024
2 parents f4f1fd3 + a336dae commit 07d4cd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/productSets/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<script lang="ts">
import { defineComponent } from 'vue'
import { cloneDeep, isString } from 'lodash'
import { cloneDeep, isNil, isString } from 'lodash'
import { CdnMedia, ProductSet, ProductSetUpdateDto } from '@heseya/store-core'
import PaginatedList from '@/components/PaginatedList.vue'
Expand Down Expand Up @@ -105,7 +105,7 @@ export default defineComponent({
this.filters.public = (isPublic as string) || ALL_FILTER_VALUE
this.filters.search = (search as string) || ''
this.filters.root = (root as string) === 'true'
this.filters.root = !isNil(root) ? (root as string) === 'true' : true
},
methods: {
editProductSet(set: ProductSet | string) {
Expand Down

0 comments on commit 07d4cd6

Please sign in to comment.