Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit a1591bd

Browse files
committed
Change key of front page features to name as ID was
either not unique nor not present. Remove unnecessary substring operation.
1 parent 600cb77 commit a1591bd

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Home = () => {
3939
</h2>
4040
</div>
4141
{features.map(feature => (
42-
<div key={feature.id} className="col-12 col-md-3 col-lg-3 mb-2">
42+
<div key={feature.title} className="col-12 col-md-3 col-lg-3 mb-2">
4343
<div className="feature hoverable">
4444
{feature.image && (
4545
<div className="feature-image">

src/templates/scannerExamples.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
55
import 'react-tabs/style/react-tabs.css';
66

77
const ScannerExamples = props => {
8-
const path = `${props.path.substring(13)}/`;
98
const examples = props.data.examples.nodes;
109
const targets = [];
1110

@@ -19,7 +18,7 @@ const ScannerExamples = props => {
1918
<Layout bodyClass="integration">
2019
<div className="container-fluid">
2120
<div id="content">
22-
<h1 className="title">Examples for {path.split('/')[2]}</h1>
21+
<h1 className="title">Examples for {props.path.split('/')[3]}</h1>
2322

2423
<Tabs>
2524
<TabList>

0 commit comments

Comments
 (0)