From 22449fb0819440d824a31f2b9d5bea110fe05967 Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Fri, 14 May 2021 09:16:23 -0400 Subject: [PATCH] [MM-35131] Don't set the download location in config if we hit Cancel (#1600) --- src/renderer/components/SettingsPage.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/components/SettingsPage.jsx b/src/renderer/components/SettingsPage.jsx index fa340dcf..49f81ba5 100644 --- a/src/renderer/components/SettingsPage.jsx +++ b/src/renderer/components/SettingsPage.jsx @@ -264,6 +264,9 @@ export default class SettingsPage extends React.PureComponent { } saveDownloadLocation = (location) => { + if (!location) { + return; + } this.setState({ downloadLocation: location, });