Skip to content

Commit c5fc61e

Browse files
Merge pull request #306 from zenml-io/QA-Fixes
fixed
2 parents d0f07bb + 26fa680 commit c5fc61e

File tree

1 file changed

+19
-17
lines changed
  • src/ui/layouts/secrets/UpdateSecret/UpdateConfig

1 file changed

+19
-17
lines changed

src/ui/layouts/secrets/UpdateSecret/UpdateConfig/index.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,22 @@ export const UpdateConfig: React.FC<{
132132
}),
133133
);
134134
}
135-
if (!key && !value) {
136-
return dispatch(
137-
showToasterAction({
138-
description: 'Key and value cannot be Empty.',
139-
type: toasterTypes.failure,
140-
}),
141-
);
142-
}
143-
if (!value && key) {
144-
return dispatch(
145-
showToasterAction({
146-
description: 'Value cannot be Empty.',
147-
type: toasterTypes.failure,
148-
}),
149-
);
150-
}
135+
// if (!key && !value) {
136+
// return dispatch(
137+
// showToasterAction({
138+
// description: 'Key and value cannot be Empty.',
139+
// type: toasterTypes.failure,
140+
// }),
141+
// );
142+
// }
143+
// if (!value && key) {
144+
// return dispatch(
145+
// showToasterAction({
146+
// description: 'Value cannot be Empty.',
147+
// type: toasterTypes.failure,
148+
// }),
149+
// );
150+
// }
151151
}
152152
// }
153153

@@ -263,7 +263,9 @@ export const UpdateConfig: React.FC<{
263263
}}
264264
>
265265
<Box marginBottom="lg">
266-
<PrimaryButton onClick={() => onSubmit()} style={{ width: '179px' }}>Save Changes</PrimaryButton>
266+
<PrimaryButton onClick={() => onSubmit()} style={{ width: '179px' }}>
267+
Save Changes
268+
</PrimaryButton>
267269
</Box>
268270
</FlexBox>
269271
</FlexBox.Column>

0 commit comments

Comments
 (0)