Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore(docs): added missing key prop in CliCommandSection component (#20384)

Clarencec9ad03e4ac85
diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsx
index 17000f9a94f..001bd1eff54 100644
--- a/apps/docs/components/reference/CLICommandSection.tsx
+++ b/apps/docs/components/reference/CLICommandSection.tsx
@@ -110,19 +110,17 @@ const CliCommandSection = (props) => {
<h3 className="text-lg text-foreground mb-3">Flags</h3>
<ul>
{commandFlags.map((flag: Flag) => (
- <>
- <li className="mt-0">
- <Param {...flag} isOptional={!flag.required}>
- {flag?.accepted_values && (
- <Options>
- {flag?.accepted_values.map((value) => {
- return <Options.Option {...value} />
- })}
- </Options>
- )}
- </Param>
- </li>
- </>
+ <li key={flag.id} className="mt-0">
+ <Param {...flag} isOptional={!flag.required}>
+ {flag?.accepted_values && (
+ <Options>
+ {flag?.accepted_values.map((value) => {
+ return <Options.Option key={value.id} {...value} />
+ })}
+ </Options>
+ )}
+ </Param>
+ </li>
))}
</ul>
</>