adopted-ember-addons / adopted-ember-addons/ember-changeset

Setting a relationship to `null` does not allow it to be set to any other value afterwards

Aperta
#643 7 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
425
Fork
136
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Version

v3.15.0

## Expected Behavior

When setting a relationship to `null`, you should then be able to set it back to another value.

## Actual Behavior

When setting a relationship to `null`, you are not able to set its value to anything else and it remains set to `null`.

## Steps to reproduce

```JavaScript
this.changeset.relationship = this.store.peekRecord('relationship', id); // value is set to the found record.
this.changeset.relationship = null; // value is set to null.
this.changeset.relationship = this.store.peekRecord('relationship', id); // value continues to be set to null

```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.