Fix array edit option (#8697)
Closes #8578 There was no case to handle a FieldMetadataType.Array and thus an error was thrown every time the edit button was clicked on an Array type. It has been added now with an explicit break statement.
This commit is contained in:
+4
@@ -117,6 +117,10 @@ export const MultiItemFieldInput = <T,>({
|
|||||||
item = items[index] as string;
|
item = items[index] as string;
|
||||||
setInputValue(item);
|
setInputValue(item);
|
||||||
break;
|
break;
|
||||||
|
case FieldMetadataType.Array:
|
||||||
|
item = items[index] as string;
|
||||||
|
setInputValue(item);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unsupported field type: ${fieldMetadataType}`);
|
throw new Error(`Unsupported field type: ${fieldMetadataType}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user