Fixes creating placeholder in smart tag
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user