Skip to content

Commit

Permalink
update object keys in components
Browse files Browse the repository at this point in the history
  • Loading branch information
isidzukuri committed Dec 22, 2024
1 parent 4342276 commit 09b9d2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/components/Thoughts/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export default function ThoughtsForm({addThought, dataRepository}) {
console.log(payload);

const created_item = await dataRepository.createItem(payload);
addThought(created_item);
console.log(created_item);

addThought(created_item['entity']);
setContent('');
setFile(null);
};
Expand Down

0 comments on commit 09b9d2c

Please sign in to comment.