chore: fix typespecs, update .formatter

This commit is contained in:
Zach Daniel 2021-07-23 13:34:02 -04:00
parent 908efc78d8
commit 289961b737
2 changed files with 3 additions and 2 deletions

View file

@ -9,6 +9,7 @@ locals_without_parens = [
name: 1,
polymorphic_tables: 1,
read_actions: 1,
relationship_display_fields: 1,
show_action: 1,
table_columns: 1,
type: 1,

View file

@ -118,7 +118,7 @@ defmodule AshAdmin.Components.Resource.Form do
<div class="shadow-lg overflow-hidden sm:rounded-md bg-white">
<div :if={{ @form.submitted_once? }} class="ml-4 mt-4 text-red-500">
<ul>
<li :for={{ {field, message} <- AshPhoenix.Form.errors(@form) || [] }}>
<li :for={{ {field, message} <- AshPhoenix.Form.errors(@form) }}>
<span :if={{field}}>
{{ to_name(field) }}:
</span>
@ -276,7 +276,7 @@ defmodule AshAdmin.Components.Resource.Form do
>
<div :if={{ @form.submitted_once? }} class="ml-4 mt-4 text-red-500">
<ul>
<li :for={{ {field, message} <- AshPhoenix.Form.errors(@form, inner_form.name) || [] }}>
<li :for={{ {field, message} <- AshPhoenix.Form.errors(@form, inner_form.name) }}>
<span :if={{field}}>
{{ to_name(field) }}:
</span>