Skip to content

Commit 221b7de

Browse files
committed
[fix] Updating the name prop being passed from List after changes to the configuration
1 parent ac32f30 commit 221b7de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/vote/list.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ import './influence-style';
99
import './button/button-style';
1010

1111
export default ({ section, page }) => {
12+
let arr = page.url.split('/');
13+
let name = arr[arr.length - 1];
14+
1215
return (
1316
<Container className="vote-list">
1417

1518
<section className="vote-list__content">
1619
<Interactive
1720
id="components/vote/app.jsx"
18-
component={VoteApp}
19-
name={page.name === "index" ? "todo" : page.name}
21+
component={ VoteApp }
22+
name={ name === 'vote' ? 'todo' : name }
2023
/>
2124
</section>
2225
</Container>

0 commit comments

Comments
 (0)