mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fix race condition causing full video label not to display
This commit is contained in:
parent
cd7d74fb33
commit
00ef3856ca
1 changed files with 4 additions and 2 deletions
|
@ -43,8 +43,10 @@ export class CategoryPill {
|
|||
this.root.render(<CategoryPillComponent ref={this.ref} vote={vote} />);
|
||||
|
||||
if (this.unsavedState) {
|
||||
this.ref.current?.setState(this.unsavedState);
|
||||
this.unsavedState = null;
|
||||
GenericUtils.wait(() => this.ref.current).then(() => {
|
||||
this.ref.current?.setState(this.unsavedState);
|
||||
this.unsavedState = null;
|
||||
});
|
||||
}
|
||||
|
||||
if (onMobileYouTube) {
|
||||
|
|
Loading…
Reference in a new issue