Skip to content

Commit 82f1bdf

Browse files
committed
feat: fix backup and project creation
1 parent 5a6f90d commit 82f1bdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Backup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function ({ backup, teamId, ...other }: Props): React.ReactElemen
4848
// END HOOKS
4949
const formData = cloneDeep(data)
5050
const schema = getBackupSchema(teamId)
51-
const uiSchema = getBackupUiSchema(user, teamId, !backup.name)
51+
const uiSchema = getBackupUiSchema(user, teamId, !backup?.name)
5252
return (
5353
<Form
5454
schema={schema}

src/components/Project.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export default function ({
245245
const { data: k8sServices } = useGetTeamK8SServicesQuery({ teamId })
246246
const { data: secrets } = useGetSecretsFromK8SQuery({ teamId })
247247
const serviceSchema = getServiceSchema(appsEnabled, settings, formData?.service, teamId, secrets, k8sServices)
248-
const serviceUiSchema = getServiceUiSchema(appsEnabled, formData?.service, user, teamId, !formData?.service.name)
248+
const serviceUiSchema = getServiceUiSchema(appsEnabled, formData?.service, user, teamId, !formData?.service?.name)
249249
serviceUiSchema.name = { 'ui:widget': 'hidden' }
250250

251251
const teamSubdomain = getHost(formData?.name, teamId)

0 commit comments

Comments
 (0)