Skip to content

Commit

Permalink
obey eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
as-op committed Dec 5, 2024
1 parent 06f64b6 commit 6a12958
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export default class FormController extends Controller<HTMLFormElement> {
}

generateExportURL():string {
const formatURL = this.element.getAttribute('action') as string;
const actionURL = this.element.getAttribute('action') as string;
const searchParams = this.getExportParams();
const append = formatURL.includes('?') ? '&' : '?';
return `${formatURL}${append}${searchParams.toString()}`
const append = actionURL.includes('?') ? '&' : '?';
return `${actionURL}${append}${searchParams.toString()}`;
}

submitForm(evt:CustomEvent) {
Expand Down

0 comments on commit 6a12958

Please sign in to comment.