Fix file input bug for the same file twice

This commit is contained in:
Mitchell McCaffrey 2020-04-26 18:29:21 +10:00
parent 1efd918af4
commit 9498ff9866

View File

@ -149,6 +149,8 @@ function SelectMapModal({
URL.revokeObjectURL(url);
};
image.src = url;
// Set file input to null to allow adding the same image 2 times in a row
fileInputRef.current.value = null;
}
function openImageDialog() {