From f3d90a88429980742a0bbe79ca8014dd8823eb5c Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 20 Jul 2024 02:57:17 -0400 Subject: [PATCH] Fix WhosWatching Error --- src/equicordplugins/exportContacts/index.tsx | 4 ++-- src/equicordplugins/whosWatching/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/equicordplugins/exportContacts/index.tsx b/src/equicordplugins/exportContacts/index.tsx index 62ec8939..cc214df1 100644 --- a/src/equicordplugins/exportContacts/index.tsx +++ b/src/equicordplugins/exportContacts/index.tsx @@ -62,8 +62,8 @@ export default definePlugin({ { find: "fetchRelationships(){", replacement: { - match: /\.then\((\i)=>(\i\.\i)\.dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS",relationships:(\i\.body)}\)/, - replace: ".then($1=>{$2.dispatch({type:\"LOAD_RELATIONSHIPS_SUCCESS\",relationships:$3}); $self.getContacts($3)}" + match: /(\.then\(\i)=>(\i\.\i\.dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS"),relationships:(\i\.body)}\)/, + replace: "$1=>{$2,relationships:$3}); $self.getContacts($3)}" } }, { diff --git a/src/equicordplugins/whosWatching/index.tsx b/src/equicordplugins/whosWatching/index.tsx index 20e46455..ae1a0627 100644 --- a/src/equicordplugins/whosWatching/index.tsx +++ b/src/equicordplugins/whosWatching/index.tsx @@ -165,7 +165,7 @@ export default definePlugin({ ); }), component: function ({ OriginalComponent }) { - return (props: any) => { + return ErrorBoundary.wrap((props: any) => { const stream = useStateFromStores([ApplicationStreamingStore], () => ApplicationStreamingStore.getCurrentUserActiveStream()); const viewers = ApplicationStreamingStore.getViewerIds(encodeStreamKey(stream)); return }> @@ -175,6 +175,6 @@ export default definePlugin({ )} ; - }; + }); } });