Skip to content

Commit d268cae

Browse files
committed
fix(wizard): Info message on emlty FAQ result
1 parent d90b0b9 commit d268cae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/scripts.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ function showTiles(tiles, defaultForms) {
316316
} else {
317317
html += '<p>' + i18n.textdomain('formcreator').__('No form found.', 'formcreator') + '</p>';
318318
}
319+
} else {
320+
if (tiles.length < 1) {
321+
html += '<p>' + i18n.textdomain('formcreator').__('No FAQ item found.', 'formcreator') + '</p>';
322+
}
319323
}
320324
html += buildTiles(tiles);
321325

0 commit comments

Comments
 (0)