mozrest-sdk-react-dev 0.3.19 → 0.3.21
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 +3 -2
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -124509,10 +124509,11 @@ const ChannelCard = ({
|
|
|
124509
124509
|
});
|
|
124510
124510
|
};
|
|
124511
124511
|
const GetConnectedBookingChannels$1 = async () => {
|
|
124512
|
+
var _a2;
|
|
124512
124513
|
const data2 = await instance$1.get(
|
|
124513
124514
|
`/company/booking-channels/connected`
|
|
124514
124515
|
);
|
|
124515
|
-
return data2.data;
|
|
124516
|
+
return (_a2 = data2 == null ? void 0 : data2.data) == null ? void 0 : _a2.filter((channel) => !(channel == null ? void 0 : channel.internal));
|
|
124516
124517
|
};
|
|
124517
124518
|
const GetBookingChannels = async ({ params }) => {
|
|
124518
124519
|
const data2 = await instance$1.get(
|
|
@@ -126133,7 +126134,7 @@ const SelectChannels = () => {
|
|
|
126133
126134
|
isClearable: true,
|
|
126134
126135
|
options: data2,
|
|
126135
126136
|
placeholder: t2("ALL"),
|
|
126136
|
-
getOptionLabel: (option) => option.name,
|
|
126137
|
+
getOptionLabel: (option) => option.name === "Resbook" ? "Widget" : option.name,
|
|
126137
126138
|
getOptionValue: (option) => option.id,
|
|
126138
126139
|
isLoading,
|
|
126139
126140
|
label: t2("CHANNELS"),
|