fix: removed @ts-expect-error

This commit is contained in:
Erik Tiekstra
2024-10-25 07:53:58 +02:00
parent 0c813d1eaf
commit b1aaa6fd56
2 changed files with 3 additions and 5 deletions

View File

@@ -1,17 +1,17 @@
import React from "react"
import ContentstackSDK from "@contentstack/app-sdk"
import React from "react"
import { ImageElement } from "~/components/ImageElement"
import { Icon } from "@contentstack/venus-components"
import { openImageVault } from "~/utils/imagevault"
import type { Lang } from "~/types/lang"
import type {
ContentstackEmbeddedData,
ContentstackPluginDefinition,
ExtractedContentstackEmbeddedData,
} from "~/types/contentstack"
import type { Lang } from "~/types/lang"
function findThisPlugin(ext: ContentstackPluginDefinition) {
return ext.type === "rte_plugin" && /imagevault/i.test(ext.title)
@@ -180,7 +180,6 @@ async function init() {
if (rte) {
const savedSelection = rte?.selection?.get() ?? undefined
// @ts-expect-error: Added at runtime
const appConfig = await rte.getConfig()
// This is the configuration for this instance of the plugin.