Skip to content

Commit

Permalink
fix(wizard): Info message on emlty FAQ result
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jun 1, 2022
1 parent d90b0b9 commit d268cae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ function showTiles(tiles, defaultForms) {
} else {
html += '<p>' + i18n.textdomain('formcreator').__('No form found.', 'formcreator') + '</p>';
}
} else {
if (tiles.length < 1) {
html += '<p>' + i18n.textdomain('formcreator').__('No FAQ item found.', 'formcreator') + '</p>';
}
}
html += buildTiles(tiles);

Expand Down

0 comments on commit d268cae

Please sign in to comment.