Project

General

Profile

« Previous | Next » 

Revision 53189

finished with the usagestats bugs

View differences:

metrics-usagestats-report-results.component.ts
151 151
      }
152 152
      output = output + u.replace(/\\/g,'').trim();
153 153
    }*/
154
    const i = itemIdentifiers.findIndex(x => x['Type'] === 'URL');
154
    let field: string;
155
    if (this.chosenReport === 'RR1') {
156
      field = 'URL';
157
    } else {
158
      field = 'URLs';
159
    }
160
    const i = itemIdentifiers.findIndex(x => x['Type'] === field);
155 161
    if ( i > -1 ){
156 162
      const urls = itemIdentifiers[i]['Value'];
157 163
      return urls.split(';');

Also available in: Unified diff