feat: 🎸 display an active icon for targets

also fixes the targets session index
This commit is contained in:
Randall Morey committed 2021-02-08 18:12:13 -05:00
1 parent 7fa1d759f2
commit bc0d2c174a
8 files changed
+99 -26

No files matched your search

+2 -1
View File
@@ -41,7 +41,8 @@ export default class TargetModel extends GeneratedTargetModel {
* @type {SessionModel[]}
*/
get sessions() {
return this.store.peekAll('session').filter(s => s.target_id === this.id);
return this.store.peekAll('session')
.filter(s => s && (s.target_id === this.id));
}
/**