fix note hoisting

This commit is contained in:
zadam 2020-03-15 22:11:42 +01:00
parent 40247a591e
commit 2c7eb723d5

View File

@ -84,12 +84,8 @@ export default class Entrypoints extends Component {
if (note.noteId === hoistedNoteId) {
hoistedNoteService.unhoist();
}
else {
const note = await treeCache.getNote(note.noteId);
if (note.type !== 'search') {
hoistedNoteService.setHoistedNoteId(note.noteId);
}
else if (note.type !== 'search') {
hoistedNoteService.setHoistedNoteId(note.noteId);
}
}