@izumisy-tailor/tailor-data-viewer 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -212,6 +212,19 @@ export function useTableData(
|
|
|
212
212
|
queryVariables.query = queryInput;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
// Add sort order variable
|
|
216
|
+
if (sortState) {
|
|
217
|
+
queryVariables.order = [
|
|
218
|
+
{ field: sortState.field, direction: sortState.direction },
|
|
219
|
+
];
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// Add pagination variables
|
|
223
|
+
queryVariables.first = pagination.first;
|
|
224
|
+
if (pagination.after) {
|
|
225
|
+
queryVariables.after = pagination.after;
|
|
226
|
+
}
|
|
227
|
+
|
|
215
228
|
const result = await executeQuery<GraphQLListResponse>(
|
|
216
229
|
client,
|
|
217
230
|
query,
|