@shopkit/data-layer 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4187,9 +4187,12 @@ var ProductService2 = class extends BaseCustomService {
4187
4187
  }
4188
4188
  const payload = {
4189
4189
  storeId: this.config.storeId,
4190
- available: params.filters?.[0]?.available ?? true,
4191
4190
  collectionHandles: handles
4192
4191
  };
4192
+ const availability = params.filters?.[0]?.available;
4193
+ if (typeof availability === "boolean") {
4194
+ payload.available = availability;
4195
+ }
4193
4196
  if (params.filters && params.filters.length > 0) {
4194
4197
  const filter = params.filters[0];
4195
4198
  if (filter.price?.min !== void 0) {