Skip to content

Commit 2e17a9d

Browse files
committed
change type names to image and html
1 parent 4cbb493 commit 2e17a9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/kaffy/resource_form.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ defmodule Kaffy.ResourceForm do
6161
!is_nil(choices) ->
6262
select(form, field, choices, class: "custom-select")
6363

64-
type == :image_preview ->
64+
type == :image ->
6565
build_image_preview(changeset.data, options)
6666

67-
type == :custom_html ->
67+
type == :html ->
6868
build_custom_html(changeset.data, options)
6969

7070
true ->

0 commit comments

Comments
 (0)