From 522a71b514a233ec3b5d2832602e03486d60edb4 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 4 Mar 2021 14:22:58 +0000 Subject: [PATCH] Merge pull request #3708 from overleaf/msm-fix-chat-stories Fix chat stories GitOrigin-RevId: 7a36d9649486c203ba9334a18e380a595014e646 --- services/web/frontend/stories/chat.stories.js | 7 +------ services/web/frontend/stories/fixtures/context.js | 9 ++++++++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/services/web/frontend/stories/chat.stories.js b/services/web/frontend/stories/chat.stories.js index 6898814d1c..d7ebeb2d01 100644 --- a/services/web/frontend/stories/chat.stories.js +++ b/services/web/frontend/stories/chat.stories.js @@ -87,12 +87,7 @@ export default { Story => ( <> - {}} - openDoc={() => {}} - onlineUsersArray={[]} - > + diff --git a/services/web/frontend/stories/fixtures/context.js b/services/web/frontend/stories/fixtures/context.js index 6c5d5d191a..38a63b8d8c 100644 --- a/services/web/frontend/stories/fixtures/context.js +++ b/services/web/frontend/stories/fixtures/context.js @@ -7,7 +7,14 @@ export function setupContext() { } let $scope = {} if (window._ide) { - $scope = { ...window._ide.$scope, project: {} } + $scope = { + ...window._ide.$scope, + project: {}, + $watch: () => {}, + ui: { + chatOpen: true + } + } } window._ide = { ...window._ide,