File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
hivemq-edge-frontend/src/extensions/datahub/components/toolbar Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -85,18 +85,7 @@ export const ToolbarPublish: FC = () => {
8585 id : 'publish-success' ,
8686 } )
8787 } )
88- . catch ( ( error ) => {
89- let message
90- if ( error instanceof Error ) message = error . message
91- else message = String ( error )
92- toast ( {
93- ...dataHubToastOption ,
94- title : t ( 'publish.error.title' , { source : type || selectedNode ?. type } ) ,
95- description : message ,
96- status : 'error' ,
97- id : 'publish-error' ,
98- } )
99- } )
88+ . catch ( ( ) => { } )
10089 return promise
10190 }
10291
@@ -197,10 +186,10 @@ export const ToolbarPublish: FC = () => {
197186 else message = String ( error )
198187 return toast ( {
199188 ...dataHubToastOption ,
200- title : t ( 'publish.error.title' , { source : DataHubNodeType . DATA_POLICY } ) ,
189+ title : t ( 'publish.error.title' , { source : selectedNode ?. type } ) ,
201190 description : message . toString ( ) ,
202191 status : 'error' ,
203- id : 'publish-runtime- error' ,
192+ id : 'publish-error' ,
204193 } )
205194 } )
206195 }
You can’t perform that action at this time.
0 commit comments