@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.
@@ -4192,9 +4192,12 @@ var ProductService2 = class extends BaseCustomService {
4192
4192
  }
4193
4193
  const payload = {
4194
4194
  storeId: this.config.storeId,
4195
- available: params.filters?.[0]?.available ?? true,
4196
4195
  collectionHandles: handles
4197
4196
  };
4197
+ const availability = params.filters?.[0]?.available;
4198
+ if (typeof availability === "boolean") {
4199
+ payload.available = availability;
4200
+ }
4198
4201
  if (params.filters && params.filters.length > 0) {
4199
4202
  const filter = params.filters[0];
4200
4203
  if (filter.price?.min !== void 0) {