File tree 1 file changed +8
-6
lines changed
src/components/views/Instance/Edit
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -319,13 +319,15 @@ class Repository extends React.Component<IProps, IState> {
319
319
const deployinterval = setInterval ( ( ) => {
320
320
const targetJob = JobsController . jobs . get ( jobId ) ;
321
321
if ( typeof targetJob ?. progress === "number" || targetJob ?. stoppedAt ) {
322
- void DreamMakerClient . startCompile ( this . context . instance . id ) . then (
323
- response => {
324
- if ( response . code === StatusCode . ERROR ) {
325
- this . addError ( response . error ) ;
322
+ if ( targetJob . errorCode === undefined && targetJob . exceptionDetails === undefined ) {
323
+ void DreamMakerClient . startCompile ( this . context . instance . id ) . then (
324
+ response => {
325
+ if ( response . code === StatusCode . ERROR ) {
326
+ this . addError ( response . error ) ;
327
+ }
326
328
}
327
- }
328
- ) ;
329
+ ) ;
330
+ }
329
331
clearInterval ( deployinterval ) ;
330
332
}
331
333
} , 5000 ) ;
You can’t perform that action at this time.
0 commit comments