Skip to content

Fix ObjectListWidget story #3009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

### Internal

- Fix ObjectListWidget story bug caused by lazyloading dnd libraries
@tiberiuichim

## 14.5.0 (2022-01-26)

### Feature
Expand Down
6 changes: 3 additions & 3 deletions src/components/manage/Widgets/ObjectListWidget.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ObjectListWidgetDefault from './ObjectListWidget';
import Wrapper, { FormUndoWrapper } from '@plone/volto/storybook';
import { RealStoreWrapper, FormUndoWrapper } from '@plone/volto/storybook';
import React from 'react';
import { searchResults } from './ObjectBrowserWidget.stories';

Expand Down Expand Up @@ -109,7 +109,7 @@ const ObjectListWidgetComponent = ({
...args
}) => {
return (
<Wrapper
<RealStoreWrapper
location={{ pathname: '/folder2/folder21/doc212' }}
customStore={customStore}
>
Expand Down Expand Up @@ -157,7 +157,7 @@ const ObjectListWidgetComponent = ({
</div>
)}
</FormUndoWrapper>
</Wrapper>
</RealStoreWrapper>
);
};

Expand Down