Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(doc): ts check (#1354)

Ran Luobca22c63f433
diff --git a/packages/docs/src/commands/commands/inline-format.command.ts b/packages/docs/src/commands/commands/inline-format.command.ts
index 4d3c63fa8f..2c7f0643ff 100644
--- a/packages/docs/src/commands/commands/inline-format.command.ts
+++ b/packages/docs/src/commands/commands/inline-format.command.ts
@@ -276,7 +276,8 @@ function getReverseFormatValueInSelection(
}
}
- if (isTextDecoration(ts?.[key]) && (ts[key] as ITextDecoration).s === BooleanNumber.FALSE) {
+ // Add second ?. in just use fix TS checker.
+ if (isTextDecoration(ts?.[key]) && (ts?.[key] as ITextDecoration).s === BooleanNumber.FALSE) {
return {
s: BooleanNumber.TRUE,
};