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
|
|
@ -65,8 +65,7 @@ export class WaveTextEffect extends ButtonEffect {
|
|||
|
||||
// Get text configuration
|
||||
const text = controlValues[`button-text${suffix}`] || '';
|
||||
const enabled = controlValues[`text${suffix}-enabled`];
|
||||
if (!text || !enabled) return;
|
||||
if (!text || text.trim() === '') return;
|
||||
|
||||
const fontSize = controlValues[`font-size${suffix}`] || 12;
|
||||
const fontWeight = controlValues[`font-bold${suffix}`] ? 'bold' : 'normal';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue