From 649b6a93b404a4fd563453fef2520217416d88bb Mon Sep 17 00:00:00 2001 From: Steve Faulkner Date: Thu, 15 Apr 2021 22:22:40 -0500 Subject: [PATCH] Fix Stored Procedures for Non-Partitioned Collections (#685) --- .../ExecuteSprocParamsPanel/__snapshots__/index.test.tsx.snap | 3 --- src/Explorer/Panes/ExecuteSprocParamsPanel/index.tsx | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Explorer/Panes/ExecuteSprocParamsPanel/__snapshots__/index.test.tsx.snap b/src/Explorer/Panes/ExecuteSprocParamsPanel/__snapshots__/index.test.tsx.snap index dc5dedfed..9435e33e5 100644 --- a/src/Explorer/Panes/ExecuteSprocParamsPanel/__snapshots__/index.test.tsx.snap +++ b/src/Explorer/Panes/ExecuteSprocParamsPanel/__snapshots__/index.test.tsx.snap @@ -1149,7 +1149,6 @@ exports[`Excute Sproc Param Pane should render Default properly 1`] = ` isAddRemoveVisible={false} onParamKeyChange={[Function]} onParamValueChange={[Function]} - paramValue="" selectedKey="string" > @@ -2684,7 +2683,6 @@ exports[`Excute Sproc Param Pane should render Default properly 1`] = ` key=".0:$.1" label="Value" onChange={[Function]} - value="" >
{ const [isLoading, { setTrue: setLoadingTrue, setFalse: setLoadingFalse }] = useBoolean(false); const [paramKeyValues, setParamKeyValues] = useState([{ key: "string", text: "" }]); - const [partitionValue, setPartitionValue] = useState(""); + const [partitionValue, setPartitionValue] = useState(); // Defaulting to undefined here is important. It is not the same partition key as "" const [selectedKey, setSelectedKey] = React.useState({ key: "string", text: "" }); const [formError, setFormError] = useState(""); const [formErrorsDetails, setFormErrorsDetails] = useState("");