fix: add state. prefix to allVaults in viewer.js getVaultIcon
This commit is contained in:
parent
de5cc97015
commit
f5cf2ca0da
@ -726,7 +726,7 @@ function attachTreeItemLongPress(itemEl, getMenuData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getVaultIcon(vaultName, size = 16) {
|
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";
|
const type = v ? v.type : "VAULT";
|
||||||
|
|
||||||
if (type === "DIR") {
|
if (type === "DIR") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user