Error message if the delete fails

This commit is contained in:
José Oliveira 2021-02-08 10:22:07 +00:00 committed by Josh Harvey
parent 4ec49c4966
commit 76b321accd
11 changed files with 111 additions and 43 deletions

View file

@ -57,7 +57,7 @@ const Notifications = ({
const [saveConfig] = useMutation(SAVE_CONFIG, {
refetchQueries: ['getData'],
onCompleted: () => setEditingKey(null),
onError: error => setError({ error })
onError: error => setError(error)
})
const config = fromNamespace(SCREEN_KEY)(data?.config)