chore(text): remove duplicate error log

This commit is contained in:
Elian Doran 2025-06-08 20:30:04 +03:00
parent ef111c36c0
commit 10abb50971
No known key found for this signature in database

View File

@ -181,8 +181,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
return;
}
logInfo(`CKEditor crash logs: ${JSON.stringify(this.watchdog.crashes)}`);
this.watchdog.crashes.forEach((crashInfo) => console.log(crashInfo));
logError(`CKEditor crash logs: ${JSON.stringify(this.watchdog.crashes, null, 4)}`);
if (currentState === "crashedPermanently") {
dialogService.info(`Editing component keeps crashing. Please try restarting Trilium. If problem persists, consider creating a bug report.`);
@ -375,7 +374,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
}
}
insertDateTimeToTextCommand() {
insertDateTimeToTextCommand() {
const date = new Date();
const customDateTimeFormat = options.get("customDateTimeFormat");
const dateString = utils.formatDateTime(date, customDateTimeFormat);