fix(frontend): Fix inputValue connection to ensure done event is always sent (#1607)

This commit is contained in:
Faton Ramadani
2023-05-19 18:57:00 +02:00
committed by GitHub
parent e02de8fd6d
commit f27abecbac
@@ -1,6 +1,6 @@
<script lang="ts">
import { isCodeInjection } from '$lib/components/flows/utils'
import { createEventDispatcher, getContext, onDestroy } from 'svelte'
import { createEventDispatcher, getContext, onDestroy, tick } from 'svelte'
import type { AppInput, EvalAppInput, UploadAppInput } from '../../inputType'
import type { AppViewerContext, RichConfiguration } from '../../types'
import { accessPropertyByPath } from '../../utils'
@@ -107,6 +107,8 @@
} else {
value = undefined
}
await tick()
dispatch('done')
}