diff --git a/packages/components/List/index.js b/packages/components/List/index.js
index be7715d..bd8436a 100644
--- a/packages/components/List/index.js
+++ b/packages/components/List/index.js
@@ -2,10 +2,11 @@ import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import SimpleCard from '../SimpleCard';
import TranscriptCard from '../TranscriptCard';
+import cuid from 'cuid';
const List = (props) => {
- const [ items, setItems ] = useState(props.items);
+ const [ items, setItems ] = useState([]);
useEffect(() => {
if (items.length === 0) {
@@ -18,11 +19,12 @@ const List = (props) => {
}, [ props.items ]);
const listItems = items.map((item) => {
+ const key = 'card-' + cuid();
if (item.display && item.status) {
return (
@@ -32,7 +34,7 @@ const List = (props) => {
return (
diff --git a/packages/components/SearchBar/stories/index.stories.js b/packages/components/SearchBar/stories/index.stories.js
index a659c08..be0bfa3 100644
--- a/packages/components/SearchBar/stories/index.stories.js
+++ b/packages/components/SearchBar/stories/index.stories.js
@@ -7,8 +7,8 @@ import List from '../../List';
import SearchBar from '..';
const cardActions = actions({
- handleEdit: 'Edit button clicked',
- handleDelete: 'Delete button clicked'
+ handleEditItem: 'Edit button clicked',
+ handleDeleteItem: 'Delete button clicked'
});
const searchActions = actions({ handleSearch: 'Handle search' });