fix an exception when filtering extra networks very early

This commit is contained in:
AUTOMATIC1111 2024-02-17 09:46:04 +03:00
parent 7dae6bb3b5
commit dd1641ecc4

View File

@ -172,7 +172,11 @@ function extraNetworksTabSelected(tabname, id, showPrompt, showNegativePrompt, t
function applyExtraNetworkFilter(tabname_full) {
var doFilter = function() {
extraNetworksApplyFilter[tabname_full](true);
var applyFunction = extraNetworksApplyFilter[tabname_full];
if (applyFunction) {
applyFunction(true);
}
};
setTimeout(doFilter, 1);
}