fix: search and favorites

This commit is contained in:
ammarahm-ed
2020-01-07 12:26:41 +05:00
parent 4a5069f2be
commit c8d947d656
6 changed files with 214 additions and 311 deletions

View File

@@ -101,9 +101,8 @@ export const AddNotebookDialog = ({visible, close, toEdit = null}) => {
title,
description,
topics,
timestamp: toEdit ? toEdit.dateCreated : null,
timestamp: toEdit && toEdit.dateCreated ? toEdit.dateCreated : null,
});
console.log(title, description, topics, toEdit.dateCreated);
ToastEvent.show('New notebook added', 'success', 3000, () => {}, '');
setTopics(['']);