File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
frontend/pages/SoftwarePage/SoftwareTitles/SoftwareTable Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -75,18 +75,20 @@ const getSoftwareNameCellData = (
75
75
if ( software_package ) {
76
76
hasPackage = true ;
77
77
isSelfService = software_package . self_service ;
78
- if (
78
+ installType =
79
79
software_package . automatic_install_policies &&
80
80
software_package . automatic_install_policies . length > 0
81
- ) {
82
- installType = "automatic" ;
83
- } else {
84
- installType = "manual" ;
85
- }
81
+ ? "automatic"
82
+ : "manual" ;
86
83
} else if ( app_store_app ) {
87
84
hasPackage = true ;
88
85
isSelfService = app_store_app . self_service ;
89
86
iconUrl = app_store_app . icon_url ;
87
+ installType =
88
+ app_store_app . automatic_install_policies &&
89
+ app_store_app . automatic_install_policies . length > 0
90
+ ? "automatic"
91
+ : "manual" ;
90
92
}
91
93
92
94
const isAllTeams = teamId === undefined ;
You can’t perform that action at this time.
0 commit comments