Fixed CI Inconsistencies
This commit is contained in:
parent
6c8207541a
commit
02828cc5d4
|
@ -165,7 +165,8 @@ export const SaveHub = () => {
|
|||
resetHighlightedBlockIndex();
|
||||
navigator.goToParent();
|
||||
} catch ( error ) {
|
||||
// @ts-expect-error The types for this are wrong.
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore The types for this are incorrect.
|
||||
createErrorNotice(
|
||||
`${ __( 'Saving failed.', 'woocommerce' ) } ${ error }`
|
||||
);
|
||||
|
@ -180,7 +181,8 @@ export const SaveHub = () => {
|
|||
await save();
|
||||
sendEvent( 'FINISH_CUSTOMIZATION' );
|
||||
} catch ( error ) {
|
||||
// @ts-expect-error The types for this are wrong.
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore The types for this are incorrect.
|
||||
createErrorNotice(
|
||||
`${ __( 'Saving failed.', 'woocommerce' ) } ${ error }`
|
||||
);
|
||||
|
|
|
@ -128,9 +128,12 @@ const useLogoEdit = ( {
|
|||
onSelectLogo( media );
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore The types for this are incorrect.
|
||||
const { createErrorNotice } = useDispatch( noticesStore );
|
||||
const onUploadError = ( message: string ) => {
|
||||
// @ts-expect-error The types for this are wrong.
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore The types for this are incorrect.
|
||||
createErrorNotice( message, { type: 'snackbar' } );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue