This commit is contained in:
Ruben Fiszel
2023-07-04 23:24:20 +02:00
parent 8df1c35540
commit 198b3543e3
2 changed files with 6 additions and 3 deletions
@@ -298,7 +298,10 @@
$worldStore.newOutput(id, 'raw', res)
res = await eval_like(
transformer.content,
computeGlobalContext($worldStore, { result: res }),
computeGlobalContext(
$worldStore,
iterContext ? { iter: $iterContext, result: res } : { result: res }
),
false,
$state,
$mode == 'dnd',
@@ -360,6 +363,8 @@
undefined
onMount(() => {
console.log('create', id)
cancellableRun = (inlineScript?: InlineScript) => {
let rejectCb: (err: Error) => void
let p: Partial<CancelablePromise<void>> = new Promise<void>((resolve, reject) => {
@@ -67,8 +67,6 @@
bind:initializing
bind:result
>
<SubGridEditor visible={false} {id} subGridId={`${id}-0`} />
<div
class="w-full flex flex-wrap overflow-auto {isCard ? 'h-full gap-2' : 'divide-y max-h-full'}"
>