fix(NA): type failures

This commit is contained in:
Tiago Costa 2024-05-01 06:56:06 +01:00
parent 085d2368b0
commit e10dd38768
No known key found for this signature in database
GPG key ID: BAECC2D04A04C6EA
2 changed files with 2 additions and 2 deletions

View file

@ -306,7 +306,7 @@ export const initializeDashboard = async ({
// --------------------------------------------------------------------------------------
// Place the incoming embeddable if there is one
// --------------------------------------------------------------------------------------
const incomingEmbeddable = creationOptions?.getIncomingEmbeddable?.();
const incomingEmbeddable = creationOptions?.getIncomingEmbeddable?.() as any;
if (incomingEmbeddable) {
const scrolltoIncomingEmbeddable = (container: DashboardContainer, id: string) => {
container.setScrollToPanelId(id);

View file

@ -40,7 +40,7 @@ export const useIncomingEmbeddable = (selectedPage: CanvasPage) => {
useEffect(() => {
if (isByValueEnabled && incomingEmbeddable) {
const { embeddableId, input: incomingInput, type } = incomingEmbeddable;
const { embeddableId, input: incomingInput, type } = incomingEmbeddable as any;
// retrieve existing element
const originalElement = selectedPage.elements.find(