mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
reset search on tags page if input is empty
This commit is contained in:
@@ -556,7 +556,7 @@ SocketTopics.searchAndLoadTags = function(socket, data, callback) {
|
||||
};
|
||||
|
||||
SocketTopics.loadMoreTags = function(socket, data, callback) {
|
||||
if(!data || !data.after) {
|
||||
if(!data || !utils.isNumber(data.after)) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user