Skip to content

Commit

Permalink
Apply getPacket utility method (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Futabay committed May 19, 2020
1 parent 658ccea commit 4a5bf0e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ait/gui/static/js/ait/gui/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,14 @@ 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) :
null
)

if (curPacket !== null) {
dneu = this._selection in curPacket['dntoeu']
val = getPacket(curPacket, dneu)
val = getPacket(curPacket, raw=false)
val = val[this._selection]
raw = curPacket['raw'][this._selection]
}
Expand Down

0 comments on commit 4a5bf0e

Please sign in to comment.