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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheets-ui): resolve issue where text color could not be reset (#4234)
白熱39c7d0ece7a9
diff --git a/packages/sheets/src/commands/commands/set-style.command.ts b/packages/sheets/src/commands/commands/set-style.command.tsindex 13eaa8a2ea..1c8c8c4cf4 100644--- a/packages/sheets/src/commands/commands/set-style.command.ts+++ b/packages/sheets/src/commands/commands/set-style.command.ts@@ -371,7 +371,7 @@ export const SetTextColorCommand: ICommand<ISetColorCommandParams> = {type: CommandType.COMMAND,id: 'sheet.command.set-text-color',handler: async (accessor, params) => {- if (!params || !params.value) {+ if (!params) {return false;}