Skip to content
Permalink
Browse files

fix(field): don't delete non-existent answers

  • Loading branch information...
fkm authored and anehx committed Aug 9, 2019
1 parent 6616e0a commit 53945b1fdd8bd9dd0dde076160ce38e37f288614
Showing with 4 additions and 0 deletions.
  1. +4 −0 addon/lib/field.js
@@ -329,6 +329,10 @@ export default Base.extend(ObjectQueryManager, {
let response;

if (value === null || value.length === 0) {
if (this.isNew) {
return;
}

response = yield this.apollo.mutate(
{
mutation: removeAnswerMutation,

0 comments on commit 53945b1

Please sign in to comment.
You can’t perform that action at this time.