mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
Fix when no result
This commit is contained in:
parent
e21c7e67fd
commit
2a09db3094
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ async function renderToStaticMarkup(Component, props, { default: children, ...sl
|
||||||
value: newChildren,
|
value: newChildren,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const formState = this ? await getFormState(this) : undefined;
|
const formState = this?.result ? await getFormState(this) : undefined;
|
||||||
if (formState) {
|
if (formState) {
|
||||||
attrs['data-action-result'] = JSON.stringify(formState[0]);
|
attrs['data-action-result'] = JSON.stringify(formState[0]);
|
||||||
attrs['data-action-key'] = formState[1];
|
attrs['data-action-key'] = formState[1];
|
||||||
|
|
Loading…
Reference in a new issue