File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -162,16 +162,16 @@ async function loadFilteredPlugins(filterName, isInitial = false) {
162162
163163 try {
164164 isFilterLoading = true ;
165-
165+
166166 const plugins = await getFilteredPlugins ( filterName , filterCurrentPage ) ;
167-
167+
168168 if ( plugins . length < LIMIT ) {
169169 filterHasMore = false ;
170170 }
171171
172172 installedPlugins = await listInstalledPlugins ( ) ;
173173 const pluginElements = plugins . map ( ListItem ) ;
174-
174+
175175 if ( isInitial ) {
176176 $searchResult . append ( ...pluginElements ) ;
177177 } else {
@@ -197,7 +197,7 @@ async function searchPlugin() {
197197 filterHasMore = true ;
198198 isFilterLoading = false ;
199199 $searchResult . onscroll = null ;
200-
200+
201201 $searchResult . content = "" ;
202202 const status = helpers . checkAPIStatus ( ) ;
203203 if ( ! status ) {
@@ -388,7 +388,9 @@ async function getFilteredPlugins(filterName, page = 1) {
388388 try {
389389 let response ;
390390 if ( filterName === "top_rated" ) {
391- response = await fetch ( `${ constants . API_BASE } /plugins?explore=random&page=${ page } &limit=${ LIMIT } ` ) ;
391+ response = await fetch (
392+ `${ constants . API_BASE } /plugins?explore=random&page=${ page } &limit=${ LIMIT } ` ,
393+ ) ;
392394 } else {
393395 response = await fetch (
394396 `${ constants . API_BASE } /plugin?orderBy=${ filterName } &page=${ page } &limit=${ LIMIT } ` ,
You can’t perform that action at this time.
0 commit comments