fix: add missing state. prefix to all bare state variable references across all modules
This commit is contained in:
@@ -153,7 +153,7 @@ const DashboardRecentWidget = {
|
||||
_currentFilter: "",
|
||||
|
||||
async load(vaultFilter = "") {
|
||||
const v = vaultFilter || selectedContextVault || "all";
|
||||
const v = vaultFilter || state.selectedContextVault || "all";
|
||||
this._currentFilter = v;
|
||||
this.showLoading();
|
||||
|
||||
@@ -371,7 +371,7 @@ const DashboardRecentWidget = {
|
||||
// Keep first option "Tous les vaults"
|
||||
while (select.options.length > 1) select.remove(1);
|
||||
|
||||
if (typeof allVaults !== "undefined" && Array.isArray(state.allVaults)) {
|
||||
if (typeof state.allVaults !== "undefined" && Array.isArray(state.allVaults)) {
|
||||
state.allVaults.forEach((v) => {
|
||||
const opt = document.createElement("option");
|
||||
opt.value = v.name;
|
||||
@@ -401,7 +401,7 @@ const DashboardBookmarkWidget = {
|
||||
_currentFilter: "",
|
||||
|
||||
async load(vaultFilter = "") {
|
||||
const v = vaultFilter || selectedContextVault || "all";
|
||||
const v = vaultFilter || state.selectedContextVault || "all";
|
||||
this._currentFilter = v;
|
||||
this.showLoading();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user