Skip to content

Commit

Permalink
Merge pull request #176 from CSCfi/CSCFC4EMSCR-486_Hide-revision-butt…
Browse files Browse the repository at this point in the history
…on-except-in-latest-version

MSCR-486 Fix API error not showing when making revision for crosswalk
  • Loading branch information
konolak authored May 22, 2024
2 parents 49b452c + 858b6d5 commit cc14c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscr-ui/src/modules/form/revision-form-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export default function RevisionFormModal({
{/*Showing API Error if only input form error is not present*/}
{userPosted &&
gatherInputError().length < 1 &&
resultSchemaRevision.error &&
(resultSchemaRevision.error || resultCrosswalkRevision.error || resultCrosswalkFullRevision.error) &&
!submitAnimationVisible && (
<div>
<InlineAlert status="error">{gatherApiError()}</InlineAlert>
Expand Down

0 comments on commit cc14c9f

Please sign in to comment.