console: improve error handling for prerelease notification opt-out (#4983)

This commit is contained in:
Sameer Kolhar 2020-06-05 15:38:01 +05:30 committed by GitHub
parent aaab6d3eb6
commit e4e4856085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -292,7 +292,7 @@ For example, see [here](https://hasura.io/docs/1.0/graphql/manual/api-reference/
- console: prevent trailing spaces while creating new role (close #3871) (#4497)
- docs: add API docs for using environment variables as webhook urls in event triggers
- server: fix recreating action's permissions (close #4377)
- server: make the graceful shutdown logic customizable (graceful shutdown on the SIGTERM signal continues to be the default)
- server: make the graceful shutdown logic customizable (graceful shutdown on the SIGTERM signal continues to be the default)
- docs: add reference docs for CLI (clsoe #4327) (#4408)
## `v1.2.0-beta.4`

View File

@ -29,6 +29,16 @@ const setConsoleOptsInDB = (opts, successCb, errorCb) => (
...opts,
};
if (!hasura_uuid) {
dispatch(
showErrorNotification(
'Opt out of pre-release notifications failed',
'Internal error: missing hasura_uuid'
)
);
return;
}
const options = {
credentials: globalCookiePolicy,
method: 'POST',