mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-15 00:23:48 -05:00
refactor: fix lint error in web UI
This commit is contained in:
@@ -69,7 +69,7 @@ function App() {
|
||||
data.images.reduce<Record<string, typeof data.images>>(
|
||||
(acc, image) => {
|
||||
const server = image.server ?? "";
|
||||
if (!acc[server]) acc[server] = [];
|
||||
if (!Object.hasOwn(acc, server)) acc[server] = [];
|
||||
acc[server].push(image);
|
||||
return acc;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user