aesmail / aesmail/kaffy

[BUG] create action broken

Aberta
#296 3 comentários 0 reações 1 responsável Reivindicada por @aesmail Ver no GitHub
bug
Linguagem predominante
Elixir
Estrelas
1.4k
Forks
171
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**Versions Used**
Kaffy: 0.10.3
Phoenix: latest
Elixir: latest

**What's actually happening?**

when creating a new record via the form, when I enter valid data and click save, I get an error `expected a map, got: nil` from `lib/kaffy/resource_error.ex:52`, unfortunately there is nothing helpful in the stacktrace. I digged a little and put

```elixir
def create_changeset(schema, attrs) do
dbg(schema)
dbg(attrs)
...
end
```

into the callchain, and while the `schema` is the correct struct (albeit empty), the attrs are an empty map - my data should be in there, no?

**What should happen instead?**

I click create and it creates the resource

**Screenshots**
If applicable, add screenshots to help explain your problem.

![Bildschirmfoto 2023-09-30 um 23 09 08](https://github.com/aesmail/kaffy/assets/1140758/8ebc5d00-6744-4d03-bdce-3dc821686d7d)

(the attribute in my schema is called `:name` if it helps.)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.