diff --git a/apps/client/src/widgets/type_widgets/options/other.tsx b/apps/client/src/widgets/type_widgets/options/other.tsx
index 7275a7450..6ac92b420 100644
--- a/apps/client/src/widgets/type_widgets/options/other.tsx
+++ b/apps/client/src/widgets/type_widgets/options/other.tsx
@@ -154,7 +154,7 @@ function RevisionSnapshotInterval() {
             
                 }}
+                    components={{ doc:  as React.ReactElement }}
                 />
             
             
diff --git a/apps/client/src/widgets/type_widgets/options/text_notes.tsx b/apps/client/src/widgets/type_widgets/options/text_notes.tsx
index 650371cff..26324d0cc 100644
--- a/apps/client/src/widgets/type_widgets/options/text_notes.tsx
+++ b/apps/client/src/widgets/type_widgets/options/text_notes.tsx
@@ -12,7 +12,7 @@ import { Themes } from "@triliumnext/highlightjs";
 import { ensureMimeTypesForHighlighting, loadHighlightingTheme } from "../../../services/syntax_highlight";
 import { normalizeMimeTypeForCKEditor } from "@triliumnext/commons";
 import { getHtml } from "../../react/RawHtml";
-import { CSSProperties } from "preact/compat";
+import type { CSSProperties } from "preact/compat";
 import FormText from "../../react/FormText";
 import FormTextBox, { FormTextBoxWithUnit } from "../../react/FormTextBox";
 import CheckboxList from "./components/CheckboxList";
@@ -294,8 +294,8 @@ function DateTimeFormatOptions() {
                 ,
-                        doc: 
+                        shortcut:  as React.ReactElement,
+                        doc:  as React.ReactElement
                     }}
                 />