Merge pull request #1830 from ONLYOFFICE/feature/fix-bug-react

[SSE] Fix Bug 57805
This commit is contained in:
maxkadushkin 2022-06-28 12:46:37 +03:00 committed by GitHub
commit 6e279d6b34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,8 +123,7 @@ const PageTabColor = inject("storePalette")(observer(props => {
const changeColor = (color, effectId, effectValue) => {
if (color !== 'empty') {
if (effectId !== undefined ) {
const newColor = {color: color, effectId: effectId, effectValue: effectValue};
sheets.changeTabColor(newColor);
sheets.changeTabColor(color);
props.onSetWorkSheetColor(color);
} else {
sheets.changeTabColor(color);