@selfcommunity/react-core 0.4.50-events.100 → 0.4.50-events.102
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.
|
@@ -62,7 +62,8 @@ function useSCFetchEvent({ id = null, event = null, autoSubscribe = true, cacheS
|
|
|
62
62
|
(event.privacy === types_1.SCEventPrivacyType.PRIVATE && event.subscription_status === types_1.SCEventSubscriptionStatusType.INVITED))) {
|
|
63
63
|
// Auto subscribe to the event
|
|
64
64
|
api_services_1.EventService.subscribeToEvent(event.id).then(() => {
|
|
65
|
-
|
|
65
|
+
const updatedEvent = Object.assign(Object.assign({}, event), { subscription_status: types_1.SCEventSubscriptionStatusType.SUBSCRIBED });
|
|
66
|
+
setSCEvent(updatedEvent);
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
69
|
else {
|
|
@@ -60,7 +60,8 @@ export default function useSCFetchEvent({ id = null, event = null, autoSubscribe
|
|
|
60
60
|
(event.privacy === SCEventPrivacyType.PRIVATE && event.subscription_status === SCEventSubscriptionStatusType.INVITED))) {
|
|
61
61
|
// Auto subscribe to the event
|
|
62
62
|
EventService.subscribeToEvent(event.id).then(() => {
|
|
63
|
-
|
|
63
|
+
const updatedEvent = Object.assign(Object.assign({}, event), { subscription_status: SCEventSubscriptionStatusType.SUBSCRIBED });
|
|
64
|
+
setSCEvent(updatedEvent);
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
67
|
else {
|