[CORD-2314] Correctly parsing dates when they are formatted as strings
Change-Id: I13b9318d4e20c07a43d3185420cd3a3fab628ee7
(cherry picked from commit 39e04158b94710d55cafd67c55b99c54641d8a64)
diff --git a/src/app/views/crud/crud.html b/src/app/views/crud/crud.html
index b347c31..596add8 100644
--- a/src/app/views/crud/crud.html
+++ b/src/app/views/crud/crud.html
@@ -54,7 +54,10 @@
<xos-debug-model ng-model="vm.model"></xos-debug-model>
</div>
</uib-tab>
- <uib-tab ng-if="vm.getRelatedItemId(r, vm.model)" ng-repeat="r in vm.related.manytoone" heading="{{r.model}} {{vm.getHumanReadableOnField(r)}}">
+ <uib-tab
+ ng-if="vm.getRelatedItemId(r, vm.model) && vm.relatedModels.manytoone[r.model][r.on_field].formConfig"
+ ng-repeat="r in vm.related.manytoone"
+ heading="{{r.model}} {{vm.getHumanReadableOnField(r)}}">
<div class="panel-body">
<xos-form ng-model="vm.relatedModels.manytoone[r.model][r.on_field].model" config="vm.relatedModels.manytoone[r.model][r.on_field].formConfig"></xos-form>
</div>