0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Ben Holmes 2024-05-22 12:25:50 +00:00 committed by astrobot-houston
parent 8ca7c731de
commit 7be7b1a757
2 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@ function toActionProxy(actionCallback = {}, aggregatedPath = '/_actions/') {
method: 'POST',
name: action.toString(),
data,
}
};
};
action.safe.$$FORM_ACTION = function () {
const data = new FormData();
@ -32,8 +32,8 @@ function toActionProxy(actionCallback = {}, aggregatedPath = '/_actions/') {
method: 'POST',
name: action.toString(),
data,
}
}
};
};
// recurse to construct queries for nested object paths
// ex. actions.user.admins.auth()
return toActionProxy(action, path + '.');

View file

@ -1,7 +1,7 @@
import opts from 'astro:react:opts';
import { AstroError } from 'astro/errors';
import React from 'react';
import ReactDOM from 'react-dom/server';
import { AstroError } from 'astro/errors';
import { incrementId } from './context.js';
import StaticHtml from './static-html.js';