@@ -24,6 +24,7 @@ import { IPackageFormData } from "pages/SoftwarePage/components/PackageForm/Pack
24
24
import {
25
25
generateSelectedLabels ,
26
26
getCustomTarget ,
27
+ getInstallType ,
27
28
getTargetType ,
28
29
} from "pages/SoftwarePage/components/PackageForm/helpers" ;
29
30
@@ -70,11 +71,7 @@ const EditSoftwareModal = ({
70
71
} ) ;
71
72
const [ uploadProgress , setUploadProgress ] = useState ( 0 ) ;
72
73
73
- const {
74
- data : labels ,
75
- isLoading : isLoadingLabels ,
76
- isError : isErrorLabels ,
77
- } = useQuery < ILabelSummary [ ] , Error > (
74
+ const { data : labels } = useQuery < ILabelSummary [ ] , Error > (
78
75
[ "custom_labels" ] ,
79
76
( ) => labelsAPI . summary ( ) . then ( ( res ) => getCustomLabels ( res . labels ) ) ,
80
77
{
@@ -178,6 +175,7 @@ const EditSoftwareModal = ({
178
175
postInstallScript : software . post_install_script || "" ,
179
176
uninstallScript : software . uninstall_script || "" ,
180
177
selfService : software . self_service || false ,
178
+ installType : getInstallType ( software ) ,
181
179
targetType : getTargetType ( software ) ,
182
180
customTarget : getCustomTarget ( software ) ,
183
181
labelTargets : generateSelectedLabels ( software ) ,
0 commit comments