Closed davidsmejia closed 1 year ago
Thanks, added you to the commit. Also fixed in another spot.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.
Description
Hello 👋
I was setting up my bookmarks when I encountered a bug with the
QuickLauncher
. It doesn't seem to handle bookmarks with the same name attribute gracefully. I believe this is due to the key for the result loop uses thecontainer/app/name
attribute from the result. This is the line I am referring to: https://github.com/benphelps/homepage/blob/main/src/components/quicklaunch.jsx#L164Potentially Related Issue: https://github.com/benphelps/homepage/issues/1395
Some potential solutions: A) Concatenate
r.name
andr.href
This should be unique enough to handle most scenarios as it would unique between bookmarks across ether other as well as against services. However service to service would not be unique.
B) Stringify the result object
This would be the most unique for everything with the exception of an actual duplicate entry (which is possible someone might want?)
C) Add a unique identifier to all entries of
servicesAndBookmarks
around this line. https://github.com/benphelps/homepage/blob/main/src/pages/index.jsx#L179I am open to hearing other solutions and would gladly PR for this change,
Steps to reproduce
homepage version
v0.6.17
Installation method
Docker
Configuration
Container Logs
No response
Browser Logs
No response
Other
No response
Before submitting, I have made sure to