fix an exception when filtering extra networks very early
This commit is contained in:
parent
7dae6bb3b5
commit
dd1641ecc4
|
@ -172,7 +172,11 @@ function extraNetworksTabSelected(tabname, id, showPrompt, showNegativePrompt, t
|
||||||
|
|
||||||
function applyExtraNetworkFilter(tabname_full) {
|
function applyExtraNetworkFilter(tabname_full) {
|
||||||
var doFilter = function() {
|
var doFilter = function() {
|
||||||
extraNetworksApplyFilter[tabname_full](true);
|
var applyFunction = extraNetworksApplyFilter[tabname_full];
|
||||||
|
|
||||||
|
if (applyFunction) {
|
||||||
|
applyFunction(true);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
setTimeout(doFilter, 1);
|
setTimeout(doFilter, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue