Skip to content

Commit

Permalink
getControlsRecordsObject added (with index)
Browse files Browse the repository at this point in the history
  • Loading branch information
OllegK committed Dec 12, 2019
1 parent ae08583 commit 2d42ca9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/nexus-bridge/src/n19baseApplet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,14 @@ export default class N19baseApplet {
return ret
}

getControlsRecordsObject(addRecordIndex) {
const arr = this.getControlsRecordSet(addRecordIndex)
return arr.reduce((res, record) => {
res[record.Id] = record
return res
}, {})
}

getControlsRecordSet(addRecordIndex) {
// used slice to avoid modification of the record set
const ret = this.getRecordSet(addRecordIndex)
Expand Down

0 comments on commit 2d42ca9

Please sign in to comment.