1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix code formatting

This commit is contained in:
thatmattlove
2022-02-07 14:14:43 -07:00
parent 6c1507c88c
commit 094d2e586a

View File

@@ -53,7 +53,10 @@ function removeColumns(event: Event): void {
/** /**
* Submit form configuration to the NetBox API. * Submit form configuration to the NetBox API.
*/ */
async function submitFormConfig(url: string, formConfig: Dict<Dict>): Promise<APIResponse<APIUserConfig>> { async function submitFormConfig(
url: string,
formConfig: Dict<Dict>,
): Promise<APIResponse<APIUserConfig>> {
return await apiPatch<APIUserConfig>(url, formConfig); return await apiPatch<APIUserConfig>(url, formConfig);
} }
@@ -70,9 +73,9 @@ function handleSubmit(event: Event): void {
const url = element.getAttribute('data-url'); const url = element.getAttribute('data-url');
if (url == null) { if (url == null) {
const toast = createToast( const toast = createToast(
'danger', 'danger',
'Error Updating Table Configuration', 'Error Updating Table Configuration',
'No API path defined for configuration form.' 'No API path defined for configuration form.',
); );
toast.show(); toast.show();
return; return;