mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
fix: Database updateByName not working
This commit is contained in:
@@ -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