Commit dd1641ec authored by AUTOMATIC1111's avatar AUTOMATIC1111

fix an exception when filtering extra networks very early

parent 7dae6bb3
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment