epicmaxco / vuestic-admin

Vuestic Admin is an open-source, ready-to-use admin template suite designed for rapid development, easy maintenance, and high accessibility. Built on Vuestic UI, Vue 3, Vite, Pinia, and Tailwind CSS. Maintained by Epicmax (@epicmaxco).
https://admin.vuestic.dev
MIT License
10.57k stars 1.72k forks source link

Getting warning when I tried to sort the data by clicking on Projects data table header columns #1030

Open damuramya opened 7 months ago

damuramya commented 7 months ago

image

ridge-kimani commented 7 months ago

@damuramya Could you provide a reproduce? That way it's easier to debug.

xbgmsharp commented 7 months ago

open the dev tools and go to https://admin-demo.vuestic.dev/projects https://github.com/epicmaxco/vuestic-admin/blob/master/src/pages/projects/widgets/ProjectsTable.vue#L29 https://github.com/epicmaxco/vuestic-admin/blob/master/src/pages/projects/widgets/ProjectsTable.vue#L33 Should be an String instead of an Object.

ridge-kimani commented 7 months ago

Ideally, it should be an object with the sortField and the sortOrder. Not unless when a string is passed it assumes it as the sortOrder (asc, or desc) and uses the active sort field externally.