Skip to content

Commit

Permalink
Merge branch 'master' into 3D_ingest_showing_wrong_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliav-Maimon authored Dec 30, 2024
2 parents b4977b2 + 1e415a4 commit a2de67c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/common/components/error/error-presentor.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.errorIcon {
color: var(--mdc-theme-gc-error-high) !important;
font-size: 32px;
cursor: default !important;
}

.errorsList {
Expand Down
7 changes: 6 additions & 1 deletion src/common/components/error/graphql.error-presentor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ export const GraphQLError: React.FC<IGpaphQLError> = ({ error }) => {
{
!isEmpty(error?.response) &&
<AutoDirectionBox className="errorContainer">
<IconButton className="errorIcon mc-icon-Status-Warnings" />
<IconButton className="errorIcon mc-icon-Status-Warnings"
onClick={(e): void => {
e.preventDefault();
e.stopPropagation();
}}
/>
<ul className="errorsList">
{
error.response.errors?.map((error: IServerError, index: number) => {
Expand Down
7 changes: 6 additions & 1 deletion src/common/components/error/validations.error-presentor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ export const ValidationsError: React.FC<IValidationsError> = ({ errors })=> {
{
Object.keys(errors).length > NONE &&
<AutoDirectionBox className="errorContainer">
<IconButton className="errorIcon mc-icon-Status-Warnings" />
<IconButton className="errorIcon mc-icon-Status-Warnings"
onClick={(e): void => {
e.preventDefault();
e.stopPropagation();
}}
/>
<ul className="errorsList">
{
Object.keys(errors).map((key: string) => {
Expand Down

0 comments on commit a2de67c

Please sign in to comment.