</li>
<li class="list-group-item">
<div class="form-check form-check-inline">
- <label class="mr-2" for="statcat_filter" i18n>
- Stat Cat Library Filter
- </label>
<eg-org-select
domId="statcat_filter"
placeholder="Stat Cat Filter..." i18n-placeholder
[initialOrgId]="volcopy.defaults.values.statcat_filter"
(onChange)="volcopy.defaults.values.statcat_filter = $event ? $event.id() : null">
</eg-org-select>
+ <label class="ml-2" for="statcat_filter" i18n>
+ Default Stat Cat Library Filter
+ </label>
</div>
</li>
</ul>
const entryId = this.statCatValues[catId];
+ if (!entryId || !this.volcopy.statCatEntryMap[entryId]) {
+ console.warn(
+ `Attempt to apply stat cat value which does not exist.
+ This is likely the result of a stale copy template.
+ stat_cat=${catId} entry=${entryId}`);
+
+ return;
+ }
+
this.context.copyList().forEach(copy => {
let entry = copy.stat_cat_entries()
.filter(e => e.stat_cat() === catId)[0];
- console.log('0', entry);
if (entry) {
if (entry.id() === entryId) {