diff --git a/desktop/flipper-plugin/src/ui/data-inspector/TimelineDataDescription.tsx b/desktop/flipper-plugin/src/ui/data-inspector/TimelineDataDescription.tsx index 24fb34fb1..8c7139830 100644 --- a/desktop/flipper-plugin/src/ui/data-inspector/TimelineDataDescription.tsx +++ b/desktop/flipper-plugin/src/ui/data-inspector/TimelineDataDescription.tsx @@ -19,7 +19,7 @@ type TimePoint = { display: string; color: string; key: string; - properties: {[key: string]: string}; + properties?: {[key: string]: string}; }; type Timeline = { @@ -54,6 +54,10 @@ export class TimelineDataDescription extends Component { value.color, key: value.key, })); + const properties = this.props.timeline.time.find( + (value) => value.key === this.state.selected, + )?.properties; + return ( <> {this.props.canSetCurrent && ( @@ -73,15 +77,7 @@ export class TimelineDataDescription extends Component { selected={this.state.selected} /> -
- value.key === this.state.selected, - )?.properties ?? {} - } - /> -
+ {properties && } ); }