diff --git a/changelogs/fragments/7054.yml b/changelogs/fragments/7054.yml new file mode 100644 index 000000000000..913b2671d294 --- /dev/null +++ b/changelogs/fragments/7054.yml @@ -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)) \ No newline at end of file diff --git a/src/plugins/home/public/services/section_type/section_type.ts b/src/plugins/home/public/services/section_type/section_type.ts index 5b57b6e0f272..89b66bfedae9 100644 --- a/src/plugins/home/public/services/section_type/section_type.ts +++ b/src/plugins/home/public/services/section_type/section_type.ts @@ -127,10 +127,7 @@ export class SectionTypeService { } if (heroes || sections) { - homepage - .save({}) - .then(() => error$.next(undefined)) - .catch((e) => error$.next(e)); + homepage.save({}); } }) );