Skip to content

Commit

Permalink
FIx ConfigurationYmlSourceDialog error handling (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
moczolaszlo authored Aug 8, 2024
1 parent 6327b13 commit 9524c13
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const ConfigurationYmlSourceDialog = (props: ConfigurationYmlSourceDialogProps)
appConfigFromRepo,
} = useGetAppConfigFromRepoCallback(appSlug);

const { postAppConfig, postAppConfigStatus, postAppConfigLoading } = usePostAppConfigCallback(
const { postAppConfig, postAppConfigStatus, postAppConfigLoading, postAppConfigFailed } = usePostAppConfigCallback(
appSlug,
appConfigAsYml(appConfigFromRepo),
);
Expand Down Expand Up @@ -386,6 +386,9 @@ const ConfigurationYmlSourceDialog = (props: ConfigurationYmlSourceDialogProps)
{getAppConfigFromRepoFailed && (
<ErrorNotification status={getAppConfigFromRepoStatus} message={getAppConfigFromRepoFailed?.error_msg} />
)}
{postAppConfigFailed && (
<ErrorNotification status={postAppConfigStatus} message={postAppConfigFailed?.error_msg} />
)}
{updatePipelineConfigStatus && updatePipelineConfigStatus !== 200 && (
<ErrorNotification status={getAppConfigFromRepoStatus} message="Unknown error" />
)}
Expand Down

0 comments on commit 9524c13

Please sign in to comment.