Skip to content

Commit 36be8a5

Browse files
committed
Fix layout as list primitives
1 parent 3f72479 commit 36be8a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dash/dash-renderer/src/persistence.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ import {createAction} from 'redux-actions';
7070

7171
import Registry from './registry';
7272
import {stringifyId} from './actions/dependencies';
73+
import {isDryComponent} from './wrapper/wrapping';
7374

7475
export const storePrefix = '_dash_persistence.';
7576

@@ -362,7 +363,9 @@ export function recordUiEdit(layout, newProps, dispatch) {
362363
*/
363364
export function applyPersistence(layout, dispatch) {
364365
if (Array.isArray(layout)) {
365-
return layout.map(lay => persistenceMods(lay, lay, [], dispatch));
366+
return layout.map(lay =>
367+
isDryComponent(lay) ? persistenceMods(lay, lay, [], dispatch) : lay
368+
);
366369
}
367370
return persistenceMods(layout, layout, [], dispatch);
368371
}

0 commit comments

Comments
 (0)