mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-03 09:45:54 +00:00
fix: Database updateByName not working
This commit is contained in:
1 parent
9e33160e37
commit
8e2cd5bb28
3 files changed
+15
-8
No files matched your search
@@ -3,7 +3,7 @@ export function findByName(list, name) {
|
||||
}
|
||||
|
||||
export function findIndexByName(list, name) {
|
||||
return list.find((item) => item.name === name);
|
||||
return list.findIndex((item) => item.name === name);
|
||||
}
|
||||
|
||||
export function deleteByName(list, name) {
|
||||
|
||||
Reference in new issue
Block a user