@selfcommunity/react-ui 0.10.1-alpha.1 → 0.10.1-alpha.2
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,7 @@ function Share(props) {
|
|
|
116
116
|
if (shareMedias.length) {
|
|
117
117
|
sharedObjectId = shareMedias[0].embed.metadata.id;
|
|
118
118
|
}
|
|
119
|
-
const isMediaEvent = obj.medias.some((media) => media.embed.embed_type === Media_1.MEDIA_EMBED_SC_SHARED_EVENT);
|
|
119
|
+
const isMediaEvent = obj.medias.some((media) => { var _a; return ((_a = media.embed) === null || _a === void 0 ? void 0 : _a.embed_type) === Media_1.MEDIA_EMBED_SC_SHARED_EVENT; });
|
|
120
120
|
return api_services_1.http
|
|
121
121
|
.request({
|
|
122
122
|
url: api_services_1.Endpoints.ComposerMediaCreate.url(),
|
|
@@ -114,7 +114,7 @@ export default function Share(props) {
|
|
|
114
114
|
if (shareMedias.length) {
|
|
115
115
|
sharedObjectId = shareMedias[0].embed.metadata.id;
|
|
116
116
|
}
|
|
117
|
-
const isMediaEvent = obj.medias.some((media) => media.embed.embed_type === MEDIA_EMBED_SC_SHARED_EVENT);
|
|
117
|
+
const isMediaEvent = obj.medias.some((media) => { var _a; return ((_a = media.embed) === null || _a === void 0 ? void 0 : _a.embed_type) === MEDIA_EMBED_SC_SHARED_EVENT; });
|
|
118
118
|
return http
|
|
119
119
|
.request({
|
|
120
120
|
url: Endpoints.ComposerMediaCreate.url(),
|