Fixing check for field that was removed
This commit is contained in:
parent
7b74e5e997
commit
c82cfa1d23
5 changed files with 5 additions and 8 deletions
|
|
@ -90,9 +90,9 @@ export class TextShadowEffect extends ButtonEffect {
|
|||
|
||||
isEnabled(controlValues) {
|
||||
const suffix = this.textLineNumber === 1 ? "" : "2";
|
||||
const textEnabled = controlValues[`text${suffix}-enabled`];
|
||||
const text = controlValues[`button-text${suffix}`];
|
||||
const shadowEnabled = controlValues[`text${suffix}-shadow-enabled`];
|
||||
return textEnabled && shadowEnabled;
|
||||
return text && text.trim() !== "" && shadowEnabled;
|
||||
}
|
||||
|
||||
apply(context, controlValues, animState, renderData) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue