From c88e65e6538da7ebe617097f7fe6995460315ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rge=20N=C3=A6ss?= Date: Tue, 15 May 2018 13:56:35 +0200 Subject: [PATCH] [form-builder] Don't open edit dialog for uploaded items --- .../@sanity/form-builder/src/inputs/ArrayInput/ArrayInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/form-builder/src/inputs/ArrayInput/ArrayInput.js b/packages/@sanity/form-builder/src/inputs/ArrayInput/ArrayInput.js index 544340296969..cd449a7e9aba 100644 --- a/packages/@sanity/form-builder/src/inputs/ArrayInput/ArrayInput.js +++ b/packages/@sanity/form-builder/src/inputs/ArrayInput/ArrayInput.js @@ -244,7 +244,7 @@ export default class ArrayInput extends React.Component { const item = createProtoValue(type) const key = item._key - this.handleAppend(item) + this.insert(item, 'after', -1) const events$ = uploader .upload(file, type)