From 3f0af4117083e8476e88a77b12952d38374d1f25 Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Fri, 26 Jul 2024 13:27:35 +0400 Subject: [PATCH 1/2] Fix Bug 69417 - WordPress. Seamless DocSpace authorization does not work in a frame --- packages/shared/store/AuthStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/store/AuthStore.ts b/packages/shared/store/AuthStore.ts index a7dea4f35a..91da712b6a 100644 --- a/packages/shared/store/AuthStore.ts +++ b/packages/shared/store/AuthStore.ts @@ -369,7 +369,7 @@ class AuthStore { login = async (user: TUser, hash: string, session = true) => { try { - const response = (await api.user.login(user, hash, session)) as { + const response = (await api.user.login(user, hash, "", session)) as { token: string; tfa: string; error: { message: unknown }; From 52f799239328ba3646095b240bbf647cdd42b11b Mon Sep 17 00:00:00 2001 From: Elyor Djalilov Date: Fri, 26 Jul 2024 14:43:46 +0500 Subject: [PATCH 2/2] Web: Client: InfoPanel: History. fix crash --- .../Body/views/History/HistoryBlockContent/RoomExternalLink.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/Home/InfoPanel/Body/views/History/HistoryBlockContent/RoomExternalLink.tsx b/packages/client/src/pages/Home/InfoPanel/Body/views/History/HistoryBlockContent/RoomExternalLink.tsx index c263c8f583..1dfcf4c3db 100644 --- a/packages/client/src/pages/Home/InfoPanel/Body/views/History/HistoryBlockContent/RoomExternalLink.tsx +++ b/packages/client/src/pages/Home/InfoPanel/Body/views/History/HistoryBlockContent/RoomExternalLink.tsx @@ -114,7 +114,7 @@ export default inject(({ dialogsStore, infoPanelStore }) => { const { infoPanelSelection } = infoPanelStore; const { setLinkParams, setEditLinkPanelIsVisible } = dialogsStore; const { id, roomType, security } = infoPanelSelection!; - const { EditRoom } = security!; + const { EditRoom } = security || {}; const isFormRoom = roomType === RoomsType.FormRoom;