- fixed displaying message in the notification;
This commit is contained in:
@@ -297,11 +297,10 @@ const BandoEdit = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const errUnpublishCallback = (resp) => {
|
const errUnpublishCallback = (resp) => {
|
||||||
const message = pathOr('', ['data', 'message'], resp);
|
const message = pathOr('', ['message'], resp);
|
||||||
console.log('resp', resp, message())
|
if (message && toast.current) {
|
||||||
if (toast.current) {
|
|
||||||
toast.current.show({
|
toast.current.show({
|
||||||
severity: 'success',
|
severity: 'error',
|
||||||
summary: message,
|
summary: message,
|
||||||
detail: ''
|
detail: ''
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user