Skip to content

Commit

Permalink
[BUG][NewHomePage] Temp Solution to avoid crash for user with no writ…
Browse files Browse the repository at this point in the history
…e permission (#7054)

* [BUG][NewHomePage] Temp Solution to avoid crash for anonymous user with no write permission

Issue Resolve:
#6320

---------

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
ananzh and opensearch-changeset-bot[bot] authored Jun 19, 2024
1 parent 0db5848 commit 25009ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/7054.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- [BUG][NewHomePage] Temp Solution to avoid crash for anonymous user with no write permission ([#7054](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7054))
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ export class SectionTypeService {
}

if (heroes || sections) {
homepage
.save({})
.then(() => error$.next(undefined))
.catch((e) => error$.next(e));
homepage.save({});
}
})
);
Expand Down

0 comments on commit 25009ba

Please sign in to comment.