mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-12 17:35:23 +02:00
feat: add Miniflux template (#881)
* feat: add Miniflux template * fix: guard GitHub star count fallback --------- Co-authored-by: Artemis-ignis <Artemis-ignis@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,9 @@ const Navigation = () => {
|
||||
"https://api.github.com/repos/dokploy/dokploy"
|
||||
);
|
||||
const data = await response.json();
|
||||
setGithubStars(data.stargazers_count);
|
||||
setGithubStars(
|
||||
Number.isFinite(data.stargazers_count) ? data.stargazers_count : 0
|
||||
);
|
||||
} catch (error) {
|
||||
console.error("Error fetching GitHub stars:", error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user