mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
bugfix: deindex not working for idx 0
This commit is contained in:
parent
e54f6a5b8f
commit
11602b5556
|
@ -109,7 +109,7 @@ export namespace files {
|
||||||
let acc = Accounts.find(e => e.id == accountId)
|
let acc = Accounts.find(e => e.id == accountId)
|
||||||
if (!acc) return
|
if (!acc) return
|
||||||
let fi = acc.files.findIndex(e => e == fileId)
|
let fi = acc.files.findIndex(e => e == fileId)
|
||||||
if (fi) {
|
if (fi >= 0) {
|
||||||
acc.files.splice(fi,1)
|
acc.files.splice(fi,1)
|
||||||
if (!noWrite) return save()
|
if (!noWrite) return save()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue