console: show detailed error message while importing inconsistent metadata

This PR fixes an issue with an error message while importing the inconsistent metadata.
The console shows the generic error message, not the detailed error.
More info - [slack thread ](https://hasurahq.slack.com/archives/C02G2M3C1T3/p1684223626357299)

## Related Issues 👾
https://hasurahq.atlassian.net/browse/GS-557

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9163
GitOrigin-RevId: 021f23aeac61ac5886549ee24e1a021946690cae
This commit is contained in:
Varun Choudhary 2023-05-16 17:23:57 +05:30 committed by hasura-bot
parent 1d2f1956cf
commit 6436dbafd2

View File

@ -98,7 +98,7 @@ export const getNotificationDetails = (
detailsJson: Json,
children: React.ReactNode
) => {
return children ? (
return children || detailsJson ? (
<div className="notification-details">
<AceEditor
readOnly