Fixes creating placeholder in smart tag

This commit is contained in:
Mo Bitar
2020-03-21 16:20:15 -05:00
parent ed9da96c3f
commit 9a473e2039
4 changed files with 20 additions and 5 deletions

View File

@@ -163,7 +163,7 @@ class EditorCtrl extends PureCtrl {
this.application.streamItems({
contentType: ContentTypes.Tag,
stream: async ({ items, source }) => {
stream: async ({ items }) => {
if (!this.state.note) {
return;
}

View File

@@ -129,6 +129,10 @@ class NotesCtrl extends PureCtrl {
* @access private
*/
async createPlaceholderNote() {
const selectedTag = this.appState.getSelectedTag();
if(selectedTag.isSmartTag() && !selectedTag.content.isAllTag) {
return;
}
return this.createNewNote();
}