Skip to content

Commit

Permalink
lint: handle more oxlint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Aug 29, 2024
1 parent ce2c73f commit 6db55be
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/VersionSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ for (const version of selected.value) {
// TODO All of this is horrible
watch(selectedParents, (oldValue, newValue) => {
handleRemovedParent([...newValue.filter((x) => !oldValue.includes(x))]);
handleAddedParent([...oldValue.filter((x) => !newValue.includes(x))]);
handleRemovedParent(newValue.filter((x) => !oldValue.includes(x)));
handleAddedParent(oldValue.filter((x) => !newValue.includes(x)));
});
watch(selectedSub, (oldValue, newValue) => {
handleRemovedSub([...newValue.filter((x) => !oldValue.includes(x))]);
handleAddedSub([...oldValue.filter((x) => !newValue.includes(x))]);
handleRemovedSub(newValue.filter((x) => !oldValue.includes(x)));
handleAddedSub(oldValue.filter((x) => !newValue.includes(x)));
});
function handleRemovedParent(removedVersions: string[]) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/admin/log.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const requestParams = computed(() => {
const { actionLogs } = useActionLogs(() => requestParams.value, router);
function updateSort(col: string, sorter: Record<string, number>) {
sort.value = [...Object.keys(sorter)]
sort.value = Object.keys(sorter)
.map((k) => {
const val = sorter[k];
if (val === -1) return "-" + k;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/admin/user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const requestParams = computed(() => {
const { users } = useUsers(() => requestParams.value);
function updateSort(col: string, sorter: Record<string, number>) {
sort.value = [...Object.keys(sorter)]
sort.value = Object.keys(sorter)
.map((k) => {
const val = sorter[k];
if (val === -1) return "-" + k;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/authors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const requestParams = computed(() => {
const { authors } = useAuthors(() => requestParams.value);
function updateSort(col: string, sorter: Record<string, number>) {
sort.value = [...Object.keys(sorter)]
sort.value = Object.keys(sorter)
.map((k) => {
const val = sorter[k];
if (val === -1) return "-" + k;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/staff.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const requestParams = computed(() => {
const { staff } = useStaff(() => requestParams.value);
function updateSort(col: string, sorter: Record<string, number>) {
sort.value = [...Object.keys(sorter)]
sort.value = Object.keys(sorter)
.map((k) => {
const val = sorter[k];
if (val === -1) return "-" + k;
Expand Down

0 comments on commit 6db55be

Please sign in to comment.