Skip to content

Commit 80c9f34

Browse files
committed
Merged timer for updating the timestamps and local save.
1 parent 2492882 commit 80c9f34

File tree

1 file changed

+1
-7
lines changed
  • packages/components/timed-text-editor

1 file changed

+1
-7
lines changed

packages/components/timed-text-editor/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,9 @@ class TimedTextEditor extends React.Component {
112112
clearTimeout(this.saveTimer);
113113
}
114114
this.saveTimer = setTimeout(() => {
115+
this.updateTimestampsForEditorState();
115116
this.localSave(this.props.mediaUrl);
116117
}, 1000);
117-
118-
if (this.timestampTimer !== undefined) {
119-
clearTimeout(this.timestampTimer);
120-
}
121-
this.timestampTimer = setTimeout(() => {
122-
this.updateTimestampsForEditorState();
123-
}, 5000);
124118
});
125119
}
126120
}

0 commit comments

Comments
 (0)