mozrest-sdk-react-dev 0.2.39 → 0.2.40
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 +5 -2
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -102093,7 +102093,7 @@ const Chart = ({
|
|
|
102093
102093
|
const [statsToDisplay, setStatsToDisplay] = useState(1);
|
|
102094
102094
|
const fetchBookingData = async (payload, dateType) => {
|
|
102095
102095
|
var _a2, _b, _c, _d;
|
|
102096
|
-
const params2 = { ...payload
|
|
102096
|
+
const params2 = { ...payload };
|
|
102097
102097
|
const [, response] = await handlePromise(dateType === "creationDate" ? ReservationAnalyticsService.getBookingItemCount(params2) : ReservationAnalyticsService.getBookingItemMealCount(params2));
|
|
102098
102098
|
if (!response)
|
|
102099
102099
|
return;
|
|
@@ -102802,7 +102802,10 @@ const StatsBar = ({ params }) => {
|
|
|
102802
102802
|
const [periodDates, setPeriodDates] = useState([]);
|
|
102803
102803
|
const [bookingStats, setBookingStats] = useState({});
|
|
102804
102804
|
const fetchBookingStat = async (payload, cancellations, prevPeriod) => {
|
|
102805
|
-
const params2 = { ...payload
|
|
102805
|
+
const params2 = { ...payload };
|
|
102806
|
+
if (cancellations) {
|
|
102807
|
+
params2["filters[status]"] = "canceled";
|
|
102808
|
+
}
|
|
102806
102809
|
const [, response] = await handlePromise(ReservationAnalyticsService.getBookingItemTotal(params2));
|
|
102807
102810
|
if (!response)
|
|
102808
102811
|
return;
|