mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
🛠️ Delete unused displaySvgs state, simplify updateDisplaySvgs utility
This commit is contained in:
@@ -29,11 +29,11 @@
|
||||
let searchTerm = $state<string>(data.searchTerm || "");
|
||||
let filteredSvgs = $derived<iSVG[]>(data.initialSvgs);
|
||||
let sorted = $state<boolean>(data.sorted);
|
||||
let displaySvgs = $state<iSVG[]>([]);
|
||||
let showAll = $state<boolean>(false);
|
||||
|
||||
const updateDisplaySvgs = () => {
|
||||
displaySvgs = showAll ? filteredSvgs : filteredSvgs.slice(0, maxDisplay);
|
||||
const data = showAll ? filteredSvgs : filteredSvgs.slice(0, maxDisplay);
|
||||
return data;
|
||||
};
|
||||
|
||||
const searchSvgs = () => {
|
||||
|
||||
Reference in New Issue
Block a user