Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
VP-1955: Fix duplicate check in catalog page (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyawzrd authored Apr 16, 2020
1 parent 9529428 commit d84aa0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { CartSearchCriteria } from '@core/api/api-clients';
required,
async isUnique(value) {
if (value === '') return true;
const criteria = new CartSearchCriteria({type: orderDraftType, pageNumber: startPageNumber, pageSize: defaultPageSize});
const criteria = new CartSearchCriteria({type: orderDraftType, pageNumber: startPageNumber, pageSize: defaultPageSize, name: value});
criteria.keyword = value;
const result = await listClient.searchLists(criteria, storeName, locale);
return result.totalCount == 0;
Expand Down

0 comments on commit d84aa0b

Please sign in to comment.