Skip to content

Commit 72acf9e

Browse files
authored
Merge pull request #3801 from rtibbles/default_properly
Do defaulting better to allow falsey values.
2 parents 1623098 + 5e44318 commit 72acf9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@
365365
<script>
366366
367367
import difference from 'lodash/difference';
368+
import get from 'lodash/get';
368369
import intersection from 'lodash/intersection';
369370
import uniq from 'lodash/uniq';
370371
import { mapGetters, mapActions } from 'vuex';
@@ -818,7 +819,7 @@
818819
) {
819820
return this.diffTracker[node.id].extra_fields[key];
820821
}
821-
return node.extra_fields[key] || defaultValue;
822+
return get(node.extra_fields, key, defaultValue);
822823
})
823824
);
824825
return getValueFromResults(results);

0 commit comments

Comments
 (0)