File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
features/preprints/services Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export class PreprintsService {
100100 . pipe (
101101 map ( ( response ) => PreprintsMapper . fromPreprintWithEmbedsJsonApi ( response ) ) ,
102102 catchError ( ( error ) => {
103- if ( error . status === 410 ) {
103+ if ( error . error ?. errors ?. [ 0 ] ?. meta ?. flagged_content ) {
104104 this . router . navigate ( [ '/spam-content' ] ) ;
105105 }
106106 return throwError ( ( ) => error ) ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export class ResourceGuidService {
6363 ) ,
6464 finalize ( ( ) => this . loaderService . hide ( ) ) ,
6565 catchError ( ( error ) => {
66- if ( error . status === 410 ) {
66+ if ( error . error ?. errors ?. [ 0 ] ?. meta ?. flagged_content ) {
6767 this . router . navigate ( [ '/spam-content' ] ) ;
6868 }
6969 return throwError ( ( ) => error ) ;
You can’t perform that action at this time.
0 commit comments