Fix truncation handling (#1140)

fix(logs/wrap): fix logs wrap message

Fixes truncation handling by not trying to persist or update the config
for non-persisted config.
pull/10616/head
Delmer 2018-10-22 10:23:12 -04:00 committed by GitHub
parent 4ef2a458dd
commit 9cb7b5e6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,7 @@ interface DispatchTableConfigProps {
getConfig: typeof logActions.getLogConfigAsync
getSources: typeof getSourcesAsync
addFilter: typeof logActions.addFilter // TODO: update addFilters
setConfig: typeof logActions.setConfig
updateConfig: typeof logActions.updateLogConfigAsync
createConfig: typeof logActions.createLogConfigAsync
removeFilter: typeof logActions.removeFilter
@ -355,7 +356,7 @@ class LogsPage extends Component<Props, State> {
private handleUpdateTruncation = (isTruncated: boolean) => {
const {logConfig} = this.props
this.props.updateConfig({
this.props.setConfig({
...logConfig,
isTruncated,
})
@ -523,6 +524,7 @@ const mdtp: DispatchProps = {
changeFilter: logActions.changeFilter,
clearFilters: logActions.clearFilters,
getConfig: logActions.getLogConfigAsync,
setConfig: logActions.setConfig,
setSearchStatus: logActions.setSearchStatus,
setBucketAsync: logActions.setBucketAsync,
getSourceAndPopulateBuckets: logActions.getSourceAndPopulateBucketsAsync,