From 8fcf8b2478e16755ef1323b51a2efeb97524b986 Mon Sep 17 00:00:00 2001 From: Sinuhe Tellez Date: Wed, 11 Aug 2021 19:26:10 -0400 Subject: [PATCH] format topicPlot --- app/src/components/TopicPlot.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/components/TopicPlot.tsx b/app/src/components/TopicPlot.tsx index bd3ac1b..711b20a 100644 --- a/app/src/components/TopicPlot.tsx +++ b/app/src/components/TopicPlot.tsx @@ -42,10 +42,10 @@ function nodeDotPathToHistory(startTime: number | undefined, history: q.MessageH try { json = message.payload ? JSON.parse(Base64Message.toUnicodeString(message.payload)) : {} } catch (ignore) { - // sparkplugb - try { - json = message.payload ? Payload.toJSON(Payload.decode(Base64Message.toUint8Array(message.payload))) : {} - } catch (ignore) {} + // sparkplugb + try { + json = message.payload ? Payload.toJSON(Payload.decode(Base64Message.toUint8Array(message.payload))) : {} + } catch (ignore) {} } const value = dotProp.get(json, dotPath)