Skip to content

Commit

Permalink
Revert "Fixed bug in StatusWriter"
Browse files Browse the repository at this point in the history
This reverts commit d2bc3b4.
  • Loading branch information
rubenthoms committed Oct 16, 2023
1 parent d2bc3b4 commit c127634
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>): SettingsStatusWriter {
export function useSettingsStatusWriter(moduleContext: ModuleContext<any>): ViewStatusWriter {
const statusController = moduleContext.getStatusController();

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

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

0 comments on commit c127634

Please sign in to comment.