Skip to content

Commit 255525d

Browse files
committed
temporary
1 parent 1b79b73 commit 255525d

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

x-pack/legacy/plugins/canvas/canvas_plugin_src/renderers/time_filter/components/time_picker/index.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

x-pack/legacy/plugins/canvas/canvas_plugin_src/renderers/time_filter/components/time_picker/time_picker.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ export class TimePicker extends Component<Props, State> {
4747
isDirty: false,
4848
};
4949

50-
componentDidUpdate(prevProps: Props) {
51-
const { to, from } = this.props;
50+
// componentDidUpdate(prevProps: Props) {
51+
// const { to, from } = this.props;
5252

53-
if (prevProps.from !== from || to !== to) {
54-
this.setState({
55-
range: { from, to },
56-
isDirty: false,
57-
});
58-
}
59-
}
53+
// if (prevProps.from !== from || to !== to) {
54+
// this.setState({
55+
// range: { from, to },
56+
// isDirty: false,
57+
// });
58+
// }
59+
// }
6060

6161
_absoluteSelect = (from?: moment.Moment, to?: moment.Moment) => {
6262
if (from && to) {

0 commit comments

Comments
 (0)