fix(product): Always add q if defined (#9505)
This commit is contained in:
1 parent
e23d2b9ed7
commit
853187410e
2 files changed
+17
-13
No files matched your search
@@ -84,7 +84,7 @@ export default class ProductCategoryService {
|
||||
delete filters.include_ancestors_tree
|
||||
|
||||
// Apply free text search filter
|
||||
if (filters?.q) {
|
||||
if (isDefined(filters?.q)) {
|
||||
config.filters ??= {}
|
||||
config.filters[FreeTextSearchFilterKey] = {
|
||||
value: filters.q,
|
||||
@@ -121,7 +121,7 @@ export default class ProductCategoryService {
|
||||
delete filters.include_ancestors_tree
|
||||
|
||||
// Apply free text search filter
|
||||
if (filters?.q) {
|
||||
if (isDefined(filters?.q)) {
|
||||
config.filters ??= {}
|
||||
config.filters[FreeTextSearchFilterKey] = {
|
||||
value: filters.q,
|
||||
|
||||
Reference in new issue
Block a user