mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
Fix Stored Procedures for Non-Partitioned Collections (#685)
This commit is contained in:
parent
2bccb7885f
commit
649b6a93b4
@ -1149,7 +1149,6 @@ exports[`Excute Sproc Param Pane should render Default properly 1`] = `
|
|||||||
isAddRemoveVisible={false}
|
isAddRemoveVisible={false}
|
||||||
onParamKeyChange={[Function]}
|
onParamKeyChange={[Function]}
|
||||||
onParamValueChange={[Function]}
|
onParamValueChange={[Function]}
|
||||||
paramValue=""
|
|
||||||
selectedKey="string"
|
selectedKey="string"
|
||||||
>
|
>
|
||||||
<StyledLabelBase>
|
<StyledLabelBase>
|
||||||
@ -2684,7 +2683,6 @@ exports[`Excute Sproc Param Pane should render Default properly 1`] = `
|
|||||||
key=".0:$.1"
|
key=".0:$.1"
|
||||||
label="Value"
|
label="Value"
|
||||||
onChange={[Function]}
|
onChange={[Function]}
|
||||||
value=""
|
|
||||||
>
|
>
|
||||||
<TextFieldBase
|
<TextFieldBase
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
@ -2969,7 +2967,6 @@ exports[`Excute Sproc Param Pane should render Default properly 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
validateOnLoad={true}
|
validateOnLoad={true}
|
||||||
value=""
|
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="ms-TextField root-70"
|
className="ms-TextField root-70"
|
||||||
|
@ -30,7 +30,7 @@ export const ExecuteSprocParamsPanel: FunctionComponent<ExecuteSprocParamsPanePr
|
|||||||
}: ExecuteSprocParamsPaneProps): JSX.Element => {
|
}: ExecuteSprocParamsPaneProps): JSX.Element => {
|
||||||
const [isLoading, { setTrue: setLoadingTrue, setFalse: setLoadingFalse }] = useBoolean(false);
|
const [isLoading, { setTrue: setLoadingTrue, setFalse: setLoadingFalse }] = useBoolean(false);
|
||||||
const [paramKeyValues, setParamKeyValues] = useState<UnwrappedExecuteSprocParam[]>([{ key: "string", text: "" }]);
|
const [paramKeyValues, setParamKeyValues] = useState<UnwrappedExecuteSprocParam[]>([{ key: "string", text: "" }]);
|
||||||
const [partitionValue, setPartitionValue] = useState<string>("");
|
const [partitionValue, setPartitionValue] = useState<string>(); // Defaulting to undefined here is important. It is not the same partition key as ""
|
||||||
const [selectedKey, setSelectedKey] = React.useState<IDropdownOption>({ key: "string", text: "" });
|
const [selectedKey, setSelectedKey] = React.useState<IDropdownOption>({ key: "string", text: "" });
|
||||||
const [formError, setFormError] = useState<string>("");
|
const [formError, setFormError] = useState<string>("");
|
||||||
const [formErrorsDetails, setFormErrorsDetails] = useState<string>("");
|
const [formErrorsDetails, setFormErrorsDetails] = useState<string>("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user