Skip to content

Commit

Permalink
Fixed wrong class usage in useSettingsStatusWriter (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms authored Oct 16, 2023
1 parent b637127 commit 9f94ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/framework/StatusWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ export function useViewStatusWriter(moduleContext: ModuleContext<any>): ViewStat
return statusWriter.current;
}

export function useSettingsStatusWriter(moduleContext: ModuleContext<any>): ViewStatusWriter {
export function useSettingsStatusWriter(moduleContext: ModuleContext<any>): SettingsStatusWriter {
const statusController = moduleContext.getStatusController();

const statusWriter = React.useRef<ViewStatusWriter>(new ViewStatusWriter(statusController));
const statusWriter = React.useRef<SettingsStatusWriter>(new SettingsStatusWriter(statusController));

statusController.clearMessages(StatusSource.Settings);
statusController.incrementReportedComponentRenderCount(StatusSource.Settings);
Expand Down

0 comments on commit 9f94ec6

Please sign in to comment.