mozrest-sdk-react-dev 0.3.20 → 0.3.22
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/mozrest-sdk.es.js +4 -2
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -126134,7 +126134,7 @@ const SelectChannels = () => {
|
|
|
126134
126134
|
isClearable: true,
|
|
126135
126135
|
options: data2,
|
|
126136
126136
|
placeholder: t2("ALL"),
|
|
126137
|
-
getOptionLabel: (option) => option.name,
|
|
126137
|
+
getOptionLabel: (option) => option.name === "Resbook" ? "Widget" : option.name,
|
|
126138
126138
|
getOptionValue: (option) => option.id,
|
|
126139
126139
|
isLoading,
|
|
126140
126140
|
label: t2("CHANNELS"),
|
|
@@ -126915,7 +126915,9 @@ const StatsBar = ({
|
|
|
126915
126915
|
...payload
|
|
126916
126916
|
};
|
|
126917
126917
|
if (cancellations) {
|
|
126918
|
-
params2["filters[
|
|
126918
|
+
params2["filters[statuses]"] = ["canceled", "cancelled"];
|
|
126919
|
+
} else {
|
|
126920
|
+
params2["filters[excludeStatus]"] = ["require_payment"];
|
|
126919
126921
|
}
|
|
126920
126922
|
const [, response] = await handlePromise(ReservationAnalyticsService.getBookingItemTotal(params2));
|
|
126921
126923
|
if (!response) return;
|