- fixed displaying message in the notification;

This commit is contained in:
Vitalii Kiiko
2025-04-11 09:07:48 +02:00
parent 92ab798b81
commit bf6f48f9b2

View File

@@ -297,11 +297,10 @@ const BandoEdit = () => {
}
const errUnpublishCallback = (resp) => {
const message = pathOr('', ['data', 'message'], resp);
console.log('resp', resp, message())
if (toast.current) {
const message = pathOr('', ['message'], resp);
if (message && toast.current) {
toast.current.show({
severity: 'success',
severity: 'error',
summary: message,
detail: ''
});