@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.mjs CHANGED
@@ -4185,9 +4185,12 @@ var ProductService2 = class extends BaseCustomService {
4185
4185
  }
4186
4186
  const payload = {
4187
4187
  storeId: this.config.storeId,
4188
- available: params.filters?.[0]?.available ?? true,
4189
4188
  collectionHandles: handles
4190
4189
  };
4190
+ const availability = params.filters?.[0]?.available;
4191
+ if (typeof availability === "boolean") {
4192
+ payload.available = availability;
4193
+ }
4191
4194
  if (params.filters && params.filters.length > 0) {
4192
4195
  const filter = params.filters[0];
4193
4196
  if (filter.price?.min !== void 0) {