We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67a879 commit 14976f0Copy full SHA for 14976f0
src/pages/rules/[id].tsx
@@ -197,17 +197,19 @@ export default function RuleDetails({
197
},
198
{
199
title: 'Related Integrations',
200
- description:
201
- rule.metadata.integration &&
202
- rule.metadata.integration.map((x, i) => (
203
- <p key={i}>
204
- <EuiLink
205
- target="_blank"
206
- href={`https://docs.elastic.co/en/integrations/${x}`}>
207
- {x}
208
- </EuiLink>
209
- </p>
210
- )),
+ description: [
+ ...(Array.isArray(rule.metadata.integration)
+ ? rule.metadata.integration
+ : [rule.metadata.integration]),
+ ].map((x, i) => (
+ <p key={i}>
+ <EuiLink
+ target="_blank"
+ href={`https://docs.elastic.co/en/integrations/${x}`}>
+ {x}
+ </EuiLink>
211
+ </p>
212
+ )),
213
214
215
title: 'Query',
0 commit comments