disable smooth scroll

This commit is contained in:
azivner
2018-10-25 17:11:50 +02:00
parent 1d51f58447
commit 332a65a9cc
3 changed files with 6 additions and 5 deletions

View File

@@ -216,16 +216,15 @@ async function loadNoteDetail(noteId) {
}
async function showChildrenOverview() {
const note = getCurrentNote();
const attributes = await attributePromise;
const hideChildrenOverview = attributes.some(attr => attr.type === 'label' && attr.name === 'hideChildrenOverview');
const hideChildrenOverview = attributes.some(attr => attr.type === 'label' && attr.name === 'hideChildrenOverview') || note.type === 'relation-map';
if (hideChildrenOverview) {
$childrenOverview.hide();
return;
}
const note = getCurrentNote();
$childrenOverview.empty();
const notePath = treeService.getCurrentNotePath();