From dd52c2adbf04ade3ada58101a7bb818f441e7f65 Mon Sep 17 00:00:00 2001 From: Kayo Kallas Date: Tue, 19 May 2020 13:36:12 -0700 Subject: [PATCH] Check if field exists in dntoeu (#105) --- ait/gui/static/js/ait/gui/Search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ait/gui/static/js/ait/gui/Search.js b/ait/gui/static/js/ait/gui/Search.js index 3fa6c869..a0a8ce8c 100644 --- a/ait/gui/static/js/ait/gui/Search.js +++ b/ait/gui/static/js/ait/gui/Search.js @@ -134,6 +134,7 @@ const MnemonicSearch = { let val = 'N/A' let raw = 'N/A' + let dneu = 'N/A' let curTime = format.datetime(new Date(), {utc: true, gps: false}) let curPacket = (ait.packets[this._packet] ? ait.packets[this._packet].get(0) : @@ -141,7 +142,8 @@ const MnemonicSearch = { ) if (curPacket !== null) { - val = getPacket(curPacket, raw=false) + dneu = this._selection in curPacket['dntoeu'] + val = getPacket(curPacket, !dneu) val = val[this._selection] raw = curPacket['raw'][this._selection] }