This commit is contained in:
James Cole
2024-03-24 11:43:37 +01:00
parent 57981f1cf9
commit bcfb134b6e
3 changed files with 50 additions and 38 deletions

View File

@@ -43,7 +43,6 @@ let sortDirection = '';
const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),
});
// Get the value of "some_key" in eg "https://example.com/?some_key=some_value"
sortingColumn = params.column ?? '';
sortDirection = params.direction ?? '';