IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Unverified Commit 061d29f2 authored by kmw6893's avatar kmw6893 Committed by GitHub
Browse files

changes for pull request

parent 994b2524
......@@ -16,7 +16,7 @@ export default class GenerateAssetCode extends LightningElement {
// The code to be written down
// Also used for displaying messages in the input box
@track code
@track code;
// A list of all Access_Code records in salesforce
@wire(getListUi, {
......@@ -48,9 +48,9 @@ export default class GenerateAssetCode extends LightningElement {
// Get all assets in the database
assets.find().then( assetObjects => {
var id = 0;
var i;
var map = {};
let id = 0;
let i;
let map = {};
// Do not generate a new code if the existing access codes have not loaded
if (!this.accessCodeObjects) throw Error('Access_Codes failed to load.');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment