Fix types
This commit is contained in:
parent
8c538676aa
commit
20c17f1065
|
@ -1,4 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import type { UIComponentError } from "@budibase/types"
|
||||||
import {
|
import {
|
||||||
componentStore,
|
componentStore,
|
||||||
screenComponentErrorList,
|
screenComponentErrorList,
|
||||||
|
@ -9,7 +10,7 @@
|
||||||
let button: any
|
let button: any
|
||||||
let popover: any
|
let popover: any
|
||||||
|
|
||||||
function getErrorTitle(error: any) {
|
function getErrorTitle(error: UIComponentError) {
|
||||||
const titleParts = [$screenComponents[error.componentId]._instanceName]
|
const titleParts = [$screenComponents[error.componentId]._instanceName]
|
||||||
if (error.errorType === "setting") {
|
if (error.errorType === "setting") {
|
||||||
titleParts.push(error.key)
|
titleParts.push(error.key)
|
||||||
|
|
Loading…
Reference in New Issue