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) (#7063)

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

Issue Resolve:
#6320

---------



(cherry picked from commit 25009ba)

Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 19, 2024
1 parent d0b6be4 commit 9d68c18
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 9d68c18

Please sign in to comment.