From 62372b030830f2d3a41ff7cec1102e58ca47b32d Mon Sep 17 00:00:00 2001 From: Mike Cousins Date: Tue, 2 Jun 2020 10:50:57 -0400 Subject: [PATCH] fix(app): clear value after robot update file select (#5789) Fixes #5781 --- app/src/components/RobotSettings/UploadRobotUpdate.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/components/RobotSettings/UploadRobotUpdate.js b/app/src/components/RobotSettings/UploadRobotUpdate.js index 4cfde8a8768..92493386c31 100644 --- a/app/src/components/RobotSettings/UploadRobotUpdate.js +++ b/app/src/components/RobotSettings/UploadRobotUpdate.js @@ -22,6 +22,8 @@ export function UploadRobotUpdate(props: UploadRobotUpdateProps) { // https://electronjs.org/docs/api/file-object dispatch(startBuildrootUpdate(robotName, (files[0]: any).path)) } + // clear input value to allow same file to be selected again if necessary + event.target.value = '' } return (