mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-05 21:47:48 +01:00
Fix: Quicklaunch shows also services without a url (#2136)
* Fix: Quicklaunch show only services with a link
Signed-off-by: Denis Papec <denis.papec@gmail.com>
* Revert "Fix: Quicklaunch show only services with a link"
This reverts commit 30ee825611.
* Filter only bookmarks and services with href
---------
Signed-off-by: Denis Papec <denis.papec@gmail.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -183,7 +183,7 @@ function Home({ initialSettings }) {
|
||||
const { data: bookmarks } = useSWR("/api/bookmarks");
|
||||
const { data: widgets } = useSWR("/api/widgets");
|
||||
|
||||
const servicesAndBookmarks = [...services.map(sg => sg.services).flat(), ...bookmarks.map(bg => bg.bookmarks).flat()]
|
||||
const servicesAndBookmarks = [...services.map(sg => sg.services).flat(), ...bookmarks.map(bg => bg.bookmarks).flat()].filter(i => i?.href);
|
||||
|
||||
useEffect(() => {
|
||||
if (settings.language) {
|
||||
|
||||
Reference in New Issue
Block a user