From 6ea2caa770c573115d75317505c2a68d3cd35101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 15 Sep 2020 18:51:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20PMGR:=20Fix=20saving=20of=20plug?= =?UTF-8?q?in=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/pluginmanager/static/js/pluginmanager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js index e82092974..72cb1cf8c 100644 --- a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js +++ b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js @@ -793,7 +793,7 @@ $(function() { self.savePluginSettings = function() { var repository = self.config_repositoryUrl(); - if (repository !== undefined && repository.trim() === "") { + if (repository !== null && repository.trim() === "") { repository = null; } @@ -805,7 +805,7 @@ $(function() { } var notices = self.config_noticesUrl(); - if (notices !== undefined && notices.trim() === "") { + if (notices !== null && notices.trim() === "") { notices = null; } @@ -817,7 +817,7 @@ $(function() { } var pipArgs = self.config_pipAdditionalArgs(); - if (pipArgs !== undefined && pipArgs.trim() === "") { + if (pipArgs !== null && pipArgs.trim() === "") { pipArgs = null; }