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:
committed by
GitHub
parent
96b5d01ff5
commit
fd8e0d04a2
@ -117,6 +117,10 @@ export const MultiItemFieldInput = <T,>({
|
||||
item = items[index] as string;
|
||||
setInputValue(item);
|
||||
break;
|
||||
case FieldMetadataType.Array:
|
||||
item = items[index] as string;
|
||||
setInputValue(item);
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unsupported field type: ${fieldMetadataType}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user