Fix eslint warnings: Post not found and useSelect has a missing dependency

MAILPOET-6316
This commit is contained in:
Oluwaseun Olorunsola
2024-11-25 15:37:16 +01:00
committed by Jan Lysý
parent f9458c2b7f
commit 3386f9f4f1
2 changed files with 3 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ import {
} from '@wordpress/editor'; } from '@wordpress/editor';
import { useMemo } from '@wordpress/element'; import { useMemo } from '@wordpress/element';
import { SlotFillProvider, Spinner } from '@wordpress/components'; import { SlotFillProvider, Spinner } from '@wordpress/components';
import { Post, store as coreStore } from '@wordpress/core-data'; import { store as coreStore } from '@wordpress/core-data';
import { Post } from '@wordpress/core-data/build-types/entity-types/post';
/** /**
* WordPress private dependencies * WordPress private dependencies

View File

@@ -9,7 +9,7 @@ export function EditorSnackbars( { context = 'email-editor' } ) {
( select ) => ( { ( select ) => ( {
notices: select( noticesStore ).getNotices( context ), notices: select( noticesStore ).getNotices( context ),
} ), } ),
[] [ context ]
); );
const { removeNotice } = useDispatch( noticesStore ); const { removeNotice } = useDispatch( noticesStore );