Skip to content

Commit

Permalink
fix: compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdugan3 committed May 31, 2023
1 parent 70c8554 commit c28a8d4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .formatter.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ spark_locals_without_parens = [
description: 1,
field: 1,
field: 2,
field_group: 1,
field_group: 2,
field_group: 3,
input_class: 1,
label: 1,
module: 1,
options: 1,
path: 1,
prompt: 1,
resource_label: 1,
Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if Mix.env() == :dev do

# Configure esbuild (the version is required)
config :esbuild,
version: "0.17.18",
version: "0.17.19",
default: [
args:
~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
Expand Down
6 changes: 2 additions & 4 deletions dev/component_previewer/ash/user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule ComponentPreviewer.Ash.User do
field :roles do
label "Roles"
type :select
options(ComponentPreviewer.Ash.UserRole.values())
options UserRole.values()
end

field :active do
Expand Down Expand Up @@ -98,9 +98,7 @@ defmodule ComponentPreviewer.Ash.User do
end

calculations do
calculate :name_email, :ci_string do
calculation expr(name <> " (" <> email <> ")")
end
calculate :name_email, :ci_string, expr(name <> " (" <> email <> ")")
end

actions do
Expand Down
2 changes: 1 addition & 1 deletion lib/pyro/extension/resource/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if Code.ensure_loaded?(Ash) do
schema: Pyro.Resource.Form.FieldGroup.schema(),
target: Pyro.Resource.Form.FieldGroup,
recursive_as: :fields,
args: [:name, :label],
args: [:name],
entities: [
fields: [@field]
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,14 @@ if Code.ensure_loaded?(Ash) do
defp merge_field(old, new),
do:
old
|> maybe_override(new, :label)
|> maybe_override(new, :type)
|> maybe_override(new, :options)
|> maybe_override(new, :label)
|> maybe_override(new, :description)
|> maybe_override(new, :path)
|> maybe_override(new, :class)
|> maybe_override(new, :input_class)
|> maybe_override(new, :autofocus)
|> maybe_override(new, :input_class)
|> maybe_override(new, :prompt)
|> maybe_override(new, :autocomplete_search_action)
|> maybe_override(new, :autocomplete_search_arg)
Expand Down

0 comments on commit c28a8d4

Please sign in to comment.