Skip to content

Commit

Permalink
fix: buildLog component set property when component is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
adong committed Feb 28, 2020
1 parent 1b8b32d commit 16adc21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/components/build-log/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,12 @@ export default Component.extend({
* @param {boolean} fetchMax
*/
getLogs(fetchMax = false) {
if (!this.isFetching && this.shouldLoad) {
if (
!this.get('isDestroyed') &&
!this.get('isDestroying') &&
!this.isFetching &&
this.shouldLoad
) {
const { buildId, stepName, totalLine } = this;
const started = !!this.stepStartTime;

Expand Down

0 comments on commit 16adc21

Please sign in to comment.