mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(app/edge-stack): edge stack create form validation (#343)
This commit is contained in:
parent
3ca5ab180f
commit
b753371700
6 changed files with 38 additions and 43 deletions
|
@ -29,11 +29,11 @@ export function InnerForm({
|
|||
webhookId: string;
|
||||
isLoading: boolean;
|
||||
onChangeTemplate: ({
|
||||
type,
|
||||
id,
|
||||
templateType,
|
||||
templateId,
|
||||
}: {
|
||||
type: 'app' | 'custom' | undefined;
|
||||
id: number | undefined;
|
||||
templateType: 'app' | 'custom' | undefined;
|
||||
templateId: number | undefined;
|
||||
}) => void;
|
||||
}) {
|
||||
const { values, setFieldValue, errors, setValues, setFieldError, isValid } =
|
||||
|
@ -128,6 +128,7 @@ export function InnerForm({
|
|||
<StaggerFieldset
|
||||
isEdit={false}
|
||||
values={values.staggerConfig}
|
||||
errors={errors.staggerConfig}
|
||||
onChange={(newStaggerValues) =>
|
||||
setFieldValue('staggerConfig', newStaggerValues)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue