diff --git a/ui/src/logs/containers/LogsPage.tsx b/ui/src/logs/containers/LogsPage.tsx index 3f8c5de6bc..893987ffed 100644 --- a/ui/src/logs/containers/LogsPage.tsx +++ b/ui/src/logs/containers/LogsPage.tsx @@ -438,19 +438,19 @@ class LogsPage extends Component { ) } - private handleUpdateSeverityLevels = ( + private handleUpdateSeverityLevels = async ( severityLevelColors: SeverityLevelColor[] - ): void => { + ): Promise => { const {logConfig} = this.props - this.props.updateConfig(this.logConfigLink, { + await this.props.updateConfig(this.logConfigLink, { ...logConfig, severityLevelColors, }) } - private handleUpdateSeverityFormat = (format: SeverityFormat): void => { + private handleUpdateSeverityFormat = async (format: SeverityFormat): Promise => { const {logConfig} = this.props - this.props.updateConfig(this.logConfigLink, { + await this.props.updateConfig(this.logConfigLink, { ...logConfig, severityFormat: format, }) @@ -466,9 +466,9 @@ class LogsPage extends Component { return severityFormat } - private handleUpdateColumns = (tableColumns: LogsTableColumn[]): void => { + private handleUpdateColumns = async (tableColumns: LogsTableColumn[]): Promise => { const {logConfig} = this.props - this.props.updateConfig(this.logConfigLink, { + await this.props.updateConfig(this.logConfigLink, { ...logConfig, tableColumns, })