{
- if (url === "") {
- setAutoSetIcon(false);
- handleChange({ iconUrl: undefined });
- } else {
- handleChange({ iconUrl: url });
- }
- }}
- error={formErrors[`${innerProps.fieldPath}.iconUrl`] as string}
- />
+
+ {
+ if (url === "") {
+ setAutoSetIcon(false);
+ handleChange({ iconUrl: undefined });
+ } else {
+ handleChange({ iconUrl: url });
+ }
+ }}
+ error={formErrors[`${innerProps.fieldPath}.iconUrl`] as string}
+ />
+