@pisell/private-materials 3.0.37 → 3.0.39

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.
@@ -116,7 +116,10 @@ var Info = () => {
116
116
  ids: state.renderType === "eventBooking" ? (_a2 = state.eventOtherParams) == null ? void 0 : _a2.productIds : void 0,
117
117
  open_quotation: 1,
118
118
  with_schedule: 1,
119
- with_count: ["bundleGroup", "optionGroup"]
119
+ with_count: ["bundleGroup", "optionGroup"],
120
+ _config: {
121
+ useCache: true
122
+ }
120
123
  });
121
124
  setLoading(false);
122
125
  setDefaultService(data == null ? void 0 : data.list);
@@ -128,6 +131,7 @@ var Info = () => {
128
131
  });
129
132
  };
130
133
  const handleSelectService = () => {
134
+ getServices();
131
135
  setSearch("");
132
136
  dispatch({
133
137
  type: "setService",
@@ -137,7 +141,7 @@ var Info = () => {
137
141
  });
138
142
  };
139
143
  const handleSelectProduct = (item, type) => {
140
- const isEject = type === "detail" || item.option_group_count > 0 || item.bundle_group_count > 0 || item.variant_count > 0;
144
+ const isEject = type === "detail" || item.bundle_group_count > 0;
141
145
  state.action({
142
146
  type: "pisell1.handleOpenProductModal",
143
147
  data: {
@@ -200,12 +204,8 @@ var Info = () => {
200
204
  const isService = (0, import_react.useMemo)(() => {
201
205
  return state.service.value.length > 0;
202
206
  }, [state.service.value]);
203
- (0, import_react.useEffect)(() => {
204
- getServices();
205
- }, []);
206
207
  (0, import_react.useEffect)(() => {
207
208
  if (state.modalOpen) {
208
- getServices();
209
209
  }
210
210
  }, [state.modalOpen]);
211
211
  const showAddButton = (0, import_react.useMemo)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.37",
3
+ "version": "3.0.39",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",