More fixes

This commit is contained in:
Bill 2022-07-27 19:18:45 -04:00
parent 31416476c9
commit 07fde6efe1
2 changed files with 15 additions and 17 deletions

View File

@ -114,7 +114,7 @@ export const GroupMembersView: FC<{}> = props =>
setGroupId(groupId); setGroupId(groupId);
setLevelId(levelId); setLevelId(levelId);
setPageId(-1); setPageId(0);
}, },
eventUrlPrefix: 'group-members/' eventUrlPrefix: 'group-members/'
}; };

View File

@ -260,7 +260,10 @@ export const GuideToolView: FC<{}> = props =>
useMessageEvent(GuideSessionDetachedMessageEvent, onGuideSessionDetachedMessageEvent); useMessageEvent(GuideSessionDetachedMessageEvent, onGuideSessionDetachedMessageEvent);
const linkReceived = useCallback((url: string) => useEffect(() =>
{
const linkTracker: ILinkEventTracker = {
linkReceived: (url: string) =>
{ {
const parts = url.split('/'); const parts = url.split('/');
@ -272,19 +275,14 @@ export const GuideToolView: FC<{}> = props =>
//Create Tour Request //Create Tour Request
return; return;
} }
}, []); },
useEffect(() =>
{
const linkTracker: ILinkEventTracker = {
linkReceived,
eventUrlPrefix: 'help/' eventUrlPrefix: 'help/'
}; };
AddEventLinkTracker(linkTracker); AddEventLinkTracker(linkTracker);
return () => RemoveLinkEventTracker(linkTracker); return () => RemoveLinkEventTracker(linkTracker);
}, [ linkReceived ]); }, []);
const processAction = useCallback((action: string) => const processAction = useCallback((action: string) =>
{ {