Rm uneccessary async on decodeValue()

This commit is contained in:
Sosthene 2025-07-07 15:21:25 +02:00
parent 39f24114e1
commit d8c2b22c3d
2 changed files with 3 additions and 3 deletions

View File

@ -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(
{ {

View File

@ -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;