From 399239f54ac7f72bd9a4b376ebe8ef19f191ddce Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sat, 22 Jul 2023 23:07:11 -0500 Subject: [PATCH] autofix --- frontend/components/global/PageQRCode.vue | 2 +- frontend/lib/api/base/base-api.ts | 2 +- frontend/pages/reports/label-generator.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/components/global/PageQRCode.vue b/frontend/components/global/PageQRCode.vue index 6531ae21..2c6e5a8e 100644 --- a/frontend/components/global/PageQRCode.vue +++ b/frontend/components/global/PageQRCode.vue @@ -20,7 +20,7 @@ function getQRCodeUrl(): string { const currentURL = window.location.href; - return route(`/qrcode`, { 'data': encodeURIComponent(currentURL) }); + return route(`/qrcode`, { data: encodeURIComponent(currentURL) }); } diff --git a/frontend/lib/api/base/base-api.ts b/frontend/lib/api/base/base-api.ts index 2008ffa3..358779ab 100644 --- a/frontend/lib/api/base/base-api.ts +++ b/frontend/lib/api/base/base-api.ts @@ -76,7 +76,7 @@ export class BaseAPI { // URL already has a query param, this will not work. authURL(url: string): string { if (this.attachmentToken) { - return route(url, { 'access_token': this.attachmentToken }); + return route(url, { access_token: this.attachmentToken }); } return url; } diff --git a/frontend/pages/reports/label-generator.vue b/frontend/pages/reports/label-generator.vue index 27f65824..780a0c4e 100644 --- a/frontend/pages/reports/label-generator.vue +++ b/frontend/pages/reports/label-generator.vue @@ -178,7 +178,7 @@ const data = `${origin}/a/${assetID}`; - return route(`/qrcode`, { 'data': encodeURIComponent(data) }); + return route(`/qrcode`, { data: encodeURIComponent(data) }); } function getItem(n: number): LabelData {