Rm uneccessary async on decodeValue()
This commit is contained in:
parent
39f24114e1
commit
d8c2b22c3d
@ -676,7 +676,7 @@ export async function registerAllListeners() {
|
|||||||
throw new Error('Invalid or expired session token');
|
throw new Error('Invalid or expired session token');
|
||||||
}
|
}
|
||||||
|
|
||||||
const decodedData = await services.decodeValue(encodedData);
|
const decodedData = services.decodeValue(encodedData);
|
||||||
|
|
||||||
window.parent.postMessage(
|
window.parent.postMessage(
|
||||||
{
|
{
|
||||||
|
@ -1029,7 +1029,7 @@ export default class Services {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async decodeValue(value: number[]): Promise<any | null> {
|
decodeValue(value: number[]): any | null {
|
||||||
try {
|
try {
|
||||||
return this.sdkClient.decode_value(value);
|
return this.sdkClient.decode_value(value);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -1336,7 +1336,7 @@ export default class Services {
|
|||||||
const lastCommitedState = this.getLastCommitedState(process);
|
const lastCommitedState = this.getLastCommitedState(process);
|
||||||
if (lastCommitedState && lastCommitedState.public_data) {
|
if (lastCommitedState && lastCommitedState.public_data) {
|
||||||
const processName = lastCommitedState!.public_data['processName'];
|
const processName = lastCommitedState!.public_data['processName'];
|
||||||
if (processName) { return processName }
|
if (processName) { return this.decodeValue(processName) }
|
||||||
else { return null }
|
else { return null }
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user