mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 12:28:26 +00:00
fix(frontend): support navigation without subscriber query
This commit is contained in:
parent
bda750bc52
commit
36994c205c
@ -32,7 +32,7 @@ export const SubscribersList = (props: {
|
||||
assignedTo: AssignedTo;
|
||||
}) => {
|
||||
const { query, push } = useRouter();
|
||||
const subscriber = query.subscriber?.toString();
|
||||
const subscriber = query.subscriber?.toString() || null;
|
||||
const { apiUrl } = useConfig();
|
||||
const { t, i18n } = useTranslate();
|
||||
const chat = useChat();
|
||||
@ -43,7 +43,7 @@ export const SubscribersList = (props: {
|
||||
}, 400);
|
||||
|
||||
useEffect(() => {
|
||||
if (chat && subscriber) {
|
||||
if (chat) {
|
||||
chat.setSubscriberId(subscriber);
|
||||
}
|
||||
}, [chat, subscriber]);
|
||||
|
Loading…
Reference in New Issue
Block a user