Skip to content

Commit cf61858

Browse files
committed
inline comment
1 parent d35d5e5 commit cf61858

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

geonode_mapstore_client/client/js/selectors/resource.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ export const isNewDashboardDirty = (state) => {
356356
const layouts = currentData?.layouts || [];
357357
return widgets.length > 0 ||
358358
layouts.length > 1 ||
359-
(layouts.length === 1 && (layouts[0].name !== "Main view" || layouts[0].color !== null));
359+
(layouts.length === 1 &&
360+
(layouts[0].name !== "Main view" || layouts[0].color !== null) // Default layout name is "Main view"
361+
);
360362
};
361363

362364
export const isNewGeoStoryDirty = (state) => {

0 commit comments

Comments
 (0)