mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 13:09:31 +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 30ee825611f08351112e4c5e5ec7debfc1923fcc. * 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:
parent
76cbb6e2ed
commit
40522fbb96
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user