Skip to content

Commit

Permalink
Fix typo on Stimulus RefreshOnFormChangesController
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-contreras committed Jun 16, 2023
1 parent cf9e2ad commit 0098a49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import { ApplicationController } from 'stimulus-use';

export default class RefreshOnFromChangesController extends ApplicationController {
export default class RefreshOnFormChangesController extends ApplicationController {
static targets = [
'form',
];
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/stimulus/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { environment } from '../environments/environment';
import { OpApplicationController } from './controllers/op-application.controller';
import OpDisableWhenCheckedController from './controllers/disable-when-checked.controller';
import PrintController from './controllers/print.controller';
import RefreshOnFromChangesController from './controllers/refresh-on-from-changes.controller';
import RefreshOnFormChangesController from './controllers/refresh-on-form-changes.controller';

declare global {
interface Window {
Expand All @@ -22,4 +22,4 @@ instance.handleError = (error, message, detail) => {
instance.register('application', OpApplicationController);
instance.register('disable-when-checked', OpDisableWhenCheckedController);
instance.register('print', PrintController);
instance.register('refresh-on-form-changes', RefreshOnFromChangesController);
instance.register('refresh-on-form-changes', RefreshOnFormChangesController);

0 comments on commit 0098a49

Please sign in to comment.