From af6f7896e7bd7eabb19603843031fa36409c61a7 Mon Sep 17 00:00:00 2001 From: joseph izang Date: Fri, 20 Aug 2021 00:04:13 +0100 Subject: [PATCH] fix uncontrolled input react error for localplugin form --- .../plugin-manager/src/lib/components/LocalPluginForm.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx b/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx index 1f65a6c2e6..32c1486e54 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx @@ -96,7 +96,7 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor setName(e.target.value)} - value={ name || defaultPlugin.name } + value={ name } id="plugin-name" data-id="localPluginName" placeholder="Should be camelCase" /> @@ -106,7 +106,7 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor setDisplayName(e.target.value)} - value={ displayName || defaultPlugin.displayName } + value={ displayName } id="plugin-displayname" data-id="localPluginDisplayName" placeholder="Name in the header" /> @@ -116,7 +116,7 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor setMethods(e.target.value)} - value={methods || defaultPlugin.methods} + value={ methods } id="plugin-methods" data-id="localPluginMethods" placeholder="Name in the header" /> @@ -127,7 +127,7 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor setUrl(e.target.value)} - value={ url || defaultPlugin.url } + value={ url } id="plugin-url" data-id="localPluginUrl" placeholder="ex: https://localhost:8000" />