Skip to content

Commit 5715ff8

Browse files
Copilotcodingjoe
andcommitted
Fix typo: pendingRquests → pendingRequests
Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
1 parent 2218cd3 commit 5715ff8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

s3file/static/s3file/js/s3file.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,15 @@ export class S3FileInput extends globalThis.HTMLElement {
217217
async submitHandler(event) {
218218
event.preventDefault()
219219
this.form?.dispatchEvent(new window.CustomEvent("upload"))
220-
await Promise.all(this.form?.pendingRquests)
220+
await Promise.all(this.form?.pendingRequests)
221221
this.form?.requestSubmit(event.submitter)
222222
}
223223

224224
uploadHandler() {
225225
if (this.files.length && !this.upload) {
226226
this.upload = this.uploadFiles()
227-
this.form.pendingRquests = this.form?.pendingRquests || []
228-
this.form.pendingRquests.push(this.upload)
227+
this.form.pendingRequests = this.form?.pendingRequests || []
228+
this.form.pendingRequests.push(this.upload)
229229
}
230230
}
231231

tests/__tests__/s3file.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe("S3FileInput", () => {
5555
test("submitHandler", async () => {
5656
const form = document.createElement("form")
5757
document.body.appendChild(form)
58-
form.pendingRquests = []
58+
form.pendingRequests = []
5959
form.requestSubmit = mock.fn(form.requestSubmit)
6060
form.dispatchEvent = mock.fn(form.dispatchEvent)
6161
const submitButton = document.createElement("button")
@@ -82,7 +82,7 @@ describe("S3FileInput", () => {
8282
input.uploadHandler()
8383
console.log(input.upload)
8484
assert(input.upload)
85-
assert(form.pendingRquests)
85+
assert(form.pendingRequests)
8686
})
8787

8888
test("fromDataHandler", () => {

0 commit comments

Comments
 (0)