Skip to content

Commit

Permalink
Fixed bug in StatusWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Oct 16, 2023
1 parent 92e4a64 commit d2bc3b4
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 d2bc3b4

Please sign in to comment.