fix: Error with follow logs
This commit is contained in:
		@@ -57,15 +57,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
					logs = logs.concat(data.logs.map((log) => ({ ...log, line: cleanAnsiCodes(log.line) })));
 | 
										logs = logs.concat(data.logs.map((log) => ({ ...log, line: cleanAnsiCodes(log.line) })));
 | 
				
			||||||
					dispatch('updateBuildStatus', { status });
 | 
										dispatch('updateBuildStatus', { status });
 | 
				
			||||||
					if (followingBuild) {
 | 
					 | 
				
			||||||
						const logEl = document.getElementById('logs');
 | 
					 | 
				
			||||||
						logEl.scrollTop = logEl.scrollHeight;
 | 
					 | 
				
			||||||
					}
 | 
					 | 
				
			||||||
				} catch ({ error }) {
 | 
									} catch ({ error }) {
 | 
				
			||||||
					return errorNotification(error);
 | 
										return errorNotification(error);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}, 1000);
 | 
								}, 1000);
 | 
				
			||||||
		} catch ({ error }) {
 | 
							} catch ({ error }) {
 | 
				
			||||||
 | 
								console.log(error);
 | 
				
			||||||
			return errorNotification(error);
 | 
								return errorNotification(error);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user