mirror of
https://github.com/strapi/strapi.git
synced 2025-08-28 10:45:51 +00:00
fixed comment for version context
This commit is contained in:
parent
6c49ab55db
commit
02edab8053
@ -63,7 +63,7 @@ export default {
|
|||||||
for (let i = 0; i < pages.length; i++) {
|
for (let i = 0; i < pages.length; i++) {
|
||||||
if (res.length >= max) break
|
if (res.length >= max) break
|
||||||
const p = pages[i]
|
const p = pages[i]
|
||||||
// filter out results that do not match current ersion context
|
// filter out results that do not match current version context
|
||||||
if (!~p.path.slice(1).indexOf(searchContext)) continue
|
if (!~p.path.slice(1).indexOf(searchContext)) continue
|
||||||
// filter out results that do not match current locale
|
// filter out results that do not match current locale
|
||||||
if (this.getPageLocalePath(p) !== localePath) continue
|
if (this.getPageLocalePath(p) !== localePath) continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user