From 67c5b2a2a118b2a4e1355aaa38752ad8315f8340 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 22 Sep 2022 19:24:33 +0100 Subject: [PATCH] Merge pull request #9714 from overleaf/ae-storybook Fix errors in Storybook stories GitOrigin-RevId: 54ff960f0a40e63eac69afa8727faaabb1289493 --- .../web/frontend/stories/clone-project-modal.stories.js | 1 + .../web/frontend/stories/share-project-modal.stories.js | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/stories/clone-project-modal.stories.js b/services/web/frontend/stories/clone-project-modal.stories.js index 7d3084ac5d..2c3f1d7731 100644 --- a/services/web/frontend/stories/clone-project-modal.stories.js +++ b/services/web/frontend/stories/clone-project-modal.stories.js @@ -47,6 +47,7 @@ export default { argTypes: { handleHide: { action: 'close modal' }, openProject: { action: 'open project' }, + handleAfterCloned: { action: 'after cloned' }, }, decorators: [ScopeDecorator], } diff --git a/services/web/frontend/stories/share-project-modal.stories.js b/services/web/frontend/stories/share-project-modal.stories.js index b4afa21d92..07bfe4cd30 100644 --- a/services/web/frontend/stories/share-project-modal.stories.js +++ b/services/web/frontend/stories/share-project-modal.stories.js @@ -140,7 +140,13 @@ export default { show: true, animation: false, user: {}, - project, + project: { + ...project, + owner: { + ...project.owner, + _id: window.user.id, + }, + }, }, argTypes: { handleHide: { action: 'hide' },