feat: 🎸 display an active icon for targets
also fixes the targets session index
This commit is contained in:
8 files changed
+99
-26
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user