Fix fetch helper (#1442)

Fixes https://github.com/webrecorder/browsertrix-cloud/issues/1441,
regression introduced in
https://github.com/webrecorder/browsertrix-cloud/pull/1423

### Manual testing

1. Log in and go to "Archived Items"
2. Click a crawl. Verify that "Sorry, couldn't retrieve crawl logs"
notification doesn't show and logs fetch as expected.

### Follow-ups

Consistency pass on rest of `LitElement` helpers here:
https://github.com/webrecorder/browsertrix-cloud/pull/1443
This commit is contained in:
sua yoo 2023-12-12 12:11:29 -08:00 committed by GitHub
parent a5dd35bd6e
commit 3251b06e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,6 @@ export default class LiteElement extends LitElement {
/**
* @deprecated New components should use APIController directly
*/
async apiFetch<T = unknown>(...args: Parameters<APIController["fetch"]>) {
return this.apiController.fetch<T>(...args);
}
apiFetch = async <T = unknown>(...args: Parameters<APIController["fetch"]>) =>
this.apiController.fetch<T>(...args);
}