mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 23:16:56 +00:00
Parse Custom sproc parameters (#693)
* Parse Custom sproc parameters * Fix PK value parsing too
This commit is contained in:
parent
e0060b12e5
commit
a53c203286
@ -79,8 +79,15 @@ export const ExecuteSprocParamsPanel: FunctionComponent<ExecuteSprocParamsPanePr
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setLoadingTrue();
|
setLoadingTrue();
|
||||||
const sprocParams = wrappedSprocParams && wrappedSprocParams.map((sprocParam) => sprocParam.text);
|
const sprocParams =
|
||||||
storedProcedure.execute(sprocParams, partitionValue);
|
wrappedSprocParams &&
|
||||||
|
wrappedSprocParams.map((sprocParam) => {
|
||||||
|
if (sprocParam.key === "custom") {
|
||||||
|
return JSON.parse(sprocParam.text);
|
||||||
|
}
|
||||||
|
return sprocParam.text;
|
||||||
|
});
|
||||||
|
storedProcedure.execute(sprocParams, partitionKey === "custom" ? JSON.parse(partitionValue) : partitionValue);
|
||||||
setLoadingFalse();
|
setLoadingFalse();
|
||||||
closePanel();
|
closePanel();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user