Skip to content

Commit 9f0f4cf

Browse files
committed
Make it so that if the search input is cleared, it returns all tutorials
1 parent cf72d3a commit 9f0f4cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

themes/mongodb-tutorials/src/SearchChannel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class SearchChannel {
3434
search(query) {
3535
if (!this.busy) {
3636
if (!query) {
37-
this.onresults([])
37+
this.onresults(null)
3838
} else {
3939
this.worker.postMessage({ 'search': query })
4040
this.busy = true

themes/mongodb-tutorials/static/js/home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22662,7 +22662,7 @@
2266222662
value: function search(query) {
2266322663
if (!this.busy) {
2266422664
if (!query) {
22665-
this.onresults([]);
22665+
this.onresults(null);
2266622666
} else {
2266722667
this.worker.postMessage({ 'search': query });
2266822668
this.busy = true;

themes/mongodb-tutorials/static/js/home.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)