mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-11-10 10:29:12 +03:00
console: improve error handling for prerelease notification opt-out (#4983)
This commit is contained in:
parent
aaab6d3eb6
commit
e4e4856085
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user