Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Fix for plugin #4

Open
abelcabezaroman opened this issue Jan 14, 2023 · 0 comments
Open

Fix for plugin #4

abelcabezaroman opened this issue Jan 14, 2023 · 0 comments

Comments

@abelcabezaroman
Copy link

I don't know why but if I use this on frontend I am getting undefined error.

If helps, to fix this in random-sort.js you need to change condition to:

 if(queryParams.includes('randomSort=true') && ctx.body){
    shuffleArray(ctx.body.data)
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant