Skip to content

Commit 95a6722

Browse files
committed
fix: fixed type error
1 parent 953cf77 commit 95a6722

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/features/instance/applications/modals/RedeployApplication.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ export function RedeployApplicationModal({
3030

3131
const { setFocus, control, handleSubmit } = methods;
3232

33-
const submitForm = ({applicationUrl }: { applicationUrl: string }) => {
34-
redeployPackage(applicationUrl);
33+
const submitForm = ({ applicationUrl }: { applicationUrl: string | undefined }) => {
34+
if (applicationUrl) {
35+
redeployPackage(applicationUrl);
36+
}
3537
}
3638

3739
useEffect(() => {

0 commit comments

Comments
 (0)