fix: removed @ts-expect-error
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user