File tree 1 file changed +2
-3
lines changed
ui/src/plugins/dev.perfetto.RestorePinnedTracks
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {Trace} from '../../public/trace';
17
17
import { PerfettoPlugin } from '../../public/plugin' ;
18
18
import { Track } from '../../public/track' ;
19
19
import { z } from 'zod' ;
20
- import { assertExists , assertIsInstance } from '../../base/logging' ;
20
+ import { assertIsInstance } from '../../base/logging' ;
21
21
22
22
const PLUGIN_ID = 'dev.perfetto.RestorePinnedTrack' ;
23
23
const SAVED_TRACKS_KEY = `${ PLUGIN_ID } #savedPerfettoTracks` ;
@@ -184,8 +184,7 @@ export default class implements PerfettoPlugin {
184
184
private getCurrentPinnedTracks ( ) {
185
185
const res = [ ] ;
186
186
for ( const track of this . ctx . workspace . pinnedTracks ) {
187
- const actual = this . ctx . workspace . getTrackByUri ( assertExists ( track . uri ) ) ;
188
- res . push ( this . toSavedTrack ( assertExists ( actual ) ) ) ;
187
+ res . push ( this . toSavedTrack ( track ) ) ;
189
188
}
190
189
return res ;
191
190
}
You can’t perform that action at this time.
0 commit comments