fix: add state. prefix to allVaults in viewer.js getVaultIcon
All checks were successful
CI / lint (push) Successful in 14s
CI / security (push) Successful in 8s
CI / test (push) Successful in 15s
CI / build (push) Successful in 6s

This commit is contained in:
Bruno Charest 2026-05-28 20:40:46 -04:00
parent de5cc97015
commit f5cf2ca0da

View File

@ -726,7 +726,7 @@ function attachTreeItemLongPress(itemEl, getMenuData) {
}
export function getVaultIcon(vaultName, size = 16) {
const v = allVaults.find((val) => val.name === vaultName);
const v = state.allVaults.find((val) => val.name === vaultName);
const type = v ? v.type : "VAULT";
if (type === "DIR") {