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;
|
||||
}
|
||||
setLoadingTrue();
|
||||
const sprocParams = wrappedSprocParams && wrappedSprocParams.map((sprocParam) => sprocParam.text);
|
||||
storedProcedure.execute(sprocParams, partitionValue);
|
||||
const sprocParams =
|
||||
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();
|
||||
closePanel();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue