File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/components/views/Instance/Edit Expand file tree Collapse file tree 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> {
319319 const deployinterval = setInterval ( ( ) => {
320320 const targetJob = JobsController . jobs . get ( jobId ) ;
321321 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 && ! targetJob . exceptionDetails ) {
323+ void DreamMakerClient . startCompile ( this . context . instance . id ) . then (
324+ response => {
325+ if ( response . code === StatusCode . ERROR ) {
326+ this . addError ( response . error ) ;
327+ }
326328 }
327- }
328- ) ;
329+ ) ;
330+ }
329331 clearInterval ( deployinterval ) ;
330332 }
331333 } , 5000 ) ;
You can’t perform that action at this time.
0 commit comments