Barazo default frontend barazo.forum
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(plugins): handle undefined dependencies in plugin card (#196)

Add optional chaining for plugin.dependencies to prevent crash
when API response omits the field.

authored by

Guido X Jansen and committed by
GitHub
5a17c792 b9c25f89

+1 -1
+1 -1
src/components/admin/plugins/plugin-card.tsx
··· 55 55 </span> 56 56 </div> 57 57 <p className="mt-1 text-xs text-muted-foreground">{plugin.description}</p> 58 - {plugin.dependencies.length > 0 && ( 58 + {(plugin.dependencies?.length ?? 0) > 0 && ( 59 59 <p className="mt-1 text-xs text-muted-foreground"> 60 60 Depends on:{' '} 61 61 {plugin.dependencies