File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed
src/Resources/app/administration/src/module/frosh-tools/page/index Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " frosh/tools" ,
3- "version" : " 3.1.1 " ,
3+ "version" : " 3.1.2 " ,
44 "description" : " Provides some basic things for managing the Shopware Installation" ,
55 "type" : " shopware-platform-plugin" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change 11import './frosh-tools.scss' ;
22import template from './template.twig' ;
33
4- const { Component } = Shopware ;
4+ const { Component} = Shopware ;
55
66Component . register ( 'frosh-tools-index' , {
7- template,
8- computed : {
9- elasticsearchAvailable ( ) {
10- if ( Shopware . Store && Shopware . Store . get ( 'context' ) ) {
11- return (
12- Shopware . Store . get ( 'context' ) . app . config . settings
13- ?. elasticsearchEnabled || false
14- ) ;
15- } else {
16- return (
17- Shopware . State . get ( 'context' ) . app . config . settings
18- ?. elasticsearchEnabled || false
19- ) ;
20- }
21- } ,
7+ template,
8+ computed : {
9+ elasticsearchAvailable ( ) {
10+ try {
11+ return (
12+ Shopware . Store . get ( 'context' ) . app . config . settings
13+ ?. elasticsearchEnabled || false
14+ ) ;
15+
16+ } catch {
17+ return (
18+ Shopware . State . get ( 'context' ) . app . config . settings
19+ ?. elasticsearchEnabled || false
20+ ) ;
21+ }
2222 } ,
23+ } ,
2324} ) ;
You can’t perform that action at this time.
0 commit comments