From 6f424246c655987e5e3f4e0bd9a4e42650d4752f Mon Sep 17 00:00:00 2001 From: yenienserrano Date: Mon, 3 Apr 2023 12:28:16 +0200 Subject: [PATCH] Remove add sample data first time you run the app --- src/plugins/home/public/application/components/home.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/home/public/application/components/home.js b/src/plugins/home/public/application/components/home.js index 54c3f48ce9b8..01e2f93fc67a 100644 --- a/src/plugins/home/public/application/components/home.js +++ b/src/plugins/home/public/application/components/home.js @@ -76,7 +76,10 @@ export class Home extends Component { componentDidMount() { this._isMounted = true; - this.fetchIsNewOpenSearchDashboardsInstance(); + // is commented and the skipWelcome function is added to avoid loading + // the add sample data page the first time the application is accessed. + // this.fetchIsNewOpenSearchDashboardsInstance(); + this.skipWelcome(); const homeTitle = i18n.translate('home.breadcrumbs.homeTitle', { defaultMessage: 'Home' }); getServices().chrome.setBreadcrumbs([{ text: homeTitle }]);