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:
Balaji Krishnamurthy
2024-11-23 17:43:15 +05:30
committed by GitHub
parent 96b5d01ff5
commit fd8e0d04a2

View File

@ -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}`);
}