Skip to content

Commit

Permalink
BUGFIX: recentcontent not working in on-premises (#16302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Moreno authored Jun 10, 2021
1 parent 1111702 commit 52fd2ee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,17 @@ export default {
return state.recentContent.isFetching;
},
recentContent: state => {
if (state.config.cartodb_com_hosted) {
return state.recentContent.list.filter(l => l.type !== 'keplergl');
if (
state.config.cartodb_com_hosted &&
state.recentContent.list
) {
const recentContent = {};
Object.entries(state.recentContent.list).forEach(([key, value]) => {
if (value.type !== 'keplergl') {
recentContent[key] = value;
}
});
return recentContent;
} else {
return state.recentContent.list;
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cartodb-ui",
"version": "1.0.0-assets.247",
"version": "1.0.0-assets.248",
"description": "CARTO UI frontend",
"repository": {
"type": "git",
Expand Down

0 comments on commit 52fd2ee

Please sign in to comment.