fix(frontend): fix recomputa all (#1491)

This commit is contained in:
Faton Ramadani
2023-04-28 16:27:25 +02:00
committed by GitHub
parent 201d067fd4
commit f4f85b2311
3 changed files with 3 additions and 4 deletions
@@ -22,7 +22,7 @@
bind:recomputeOnInputChanged={script.recomputeOnInputChanged}
canConfigureRecomputeOnInputChanged={script.inlineScript?.language !== 'frontend'}
on:updateAutoRefresh={() => {
const autoRefresh = !script.autoRefresh
const autoRefresh = script.autoRefresh
if ($runnableComponents?.[id]?.autoRefresh !== autoRefresh && autoRefresh !== undefined) {
$runnableComponents[id] = {
...$runnableComponents[id],
@@ -49,10 +49,9 @@
bind:autoRefresh={appInput.autoRefresh}
bind:recomputeOnInputChanged={appInput.recomputeOnInputChanged}
on:updateAutoRefresh={() => {
const autoRefresh = !(
const autoRefresh =
appComponent.componentInput?.type === 'runnable' &&
appComponent?.componentInput?.autoRefresh
)
if (
appComponent.componentInput?.type === 'runnable' &&
@@ -9,7 +9,7 @@
<div class="flex flex-row p-2 border-gray-200 justify-between bg-blue-50/60">
<div class="flex flex-row gap-2 items-center">
<FunctionSquare size={16} color="blue" />
<FunctionSquare size={16} color="#3b82f6" />
<span class="text-xs font-semibold truncate">
{name}
</span>