Skip to content

Commit

Permalink
Fix #1856 Do not send is_approved, is_published and is_featured sinde…
Browse files Browse the repository at this point in the history
… the POST that creates a new map
  • Loading branch information
allyoucanmap authored and giohappy committed Sep 20, 2024
1 parent 31b0701 commit bf6e42e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geonode_mapstore_client/client/js/epics/gnsave.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ export const gnSaveContent = (action$, store) =>
const body = {
'title': action.metadata.name,
...(RESOURCE_MANAGEMENT_PROPERTIES_KEYS.reduce((acc, key) => {
acc[key] = !!currentResource?.[key];
if (currentResource?.[key] !== undefined) {
acc[key] = !!currentResource[key];
}
return acc;
}, {})),
...(action.metadata.description && { 'abstract': action.metadata.description }),
Expand Down

0 comments on commit bf6e42e

Please sign in to comment.