mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Fix chapters not saving after clicking suggestion
They still submitted properly, it only mattered if you closed the submission box
This commit is contained in:
@@ -686,13 +686,13 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
|
|||||||
descriptionUpdate(description: string): void {
|
descriptionUpdate(description: string): void {
|
||||||
this.setState({
|
this.setState({
|
||||||
description
|
description
|
||||||
|
}, () => {
|
||||||
|
this.saveEditTimes();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!this.fetchingSuggestions) {
|
if (!this.fetchingSuggestions) {
|
||||||
this.fetchSuggestions(description);
|
this.fetchSuggestions(description);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.saveEditTimes();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async fetchSuggestions(description: string): Promise<void> {
|
async fetchSuggestions(description: string): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user