mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
use isLabelTruthy() for most binary labels
This commit is contained in:
@@ -661,7 +661,7 @@ function saveLinks(note, content) {
|
||||
/** @param {BNote} note */
|
||||
function saveRevisionIfNeeded(note) {
|
||||
// files and images are versioned separately
|
||||
if (note.type === 'file' || note.type === 'image' || note.hasLabel('disableVersioning')) {
|
||||
if (note.type === 'file' || note.type === 'image' || note.isLabelTruthy('disableVersioning')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user