remove index usage

This commit is contained in:
Matt Beaudoin
2026-01-17 21:40:04 -08:00
parent a30bafaa1e
commit f188aa20d7
3 changed files with 6 additions and 4 deletions
+2
View File
@@ -2,5 +2,7 @@
This is the frontend of a web wrapper for Coop Clouds abra CLI, letting users set up and manage VPSs and docker images through a web UI.
## Still a work in progess!
## This is built with react, typescript, scss, and vite
+3 -3
View File
@@ -200,9 +200,9 @@ export const Apps: React.FC = () => {
</td>
</tr>
) : (
filteredApps.map((app, index) => (
filteredApps.map((app) => (
<tr
key={`${app.server}-${app.appName}-${index}`}
key={`${app.server}/${app.appName}`}
onClick={() => navigate(`/apps/${app.server}/${app.appName}`)}
style={{ cursor: 'pointer' }}
>
@@ -234,7 +234,7 @@ export const Apps: React.FC = () => {
<div className="version-cell">
<span className="version">{app.version}</span>
{app.chaos === 'true' && (
<span className="chaos-badge" title="Chaos mode enabled"></span>
<span className="chaos-badge" title="Chaos mode enabled"></span>
)}
{app.upgrade !== 'latest' && (
<span className="upgrade-available" title="Upgrade available">
@@ -90,7 +90,7 @@ export const Dashboard: React.FC = () => {
</div>
</button>
<button onClick={() => navigate('/apps')} className="nav-link bland-button">
<button onClick={() => navigate('/servers')} className="nav-link bland-button">
<div className="stat-card">
<h3>Servers</h3>
<p className="stat-number">{servers.length}</p>