Fix loading spinner being shown indefinitely in preview panel

stable/5.1.x
Sage Abdullah 2023-07-25 10:43:39 +01:00
rodzic 0c4156eba0
commit 50d6a808dd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -183,6 +183,10 @@ function initPreview() {
clearPreviewData();
cleared = true;
reloadIframe();
} else {
// Finish the process when the data is invalid to prepare for the next update
// and avoid elements like the loading spinner to be shown indefinitely
finishUpdate();
}
return data.is_valid;