Skip to content

Commit eac266b

Browse files
Merge pull request #1305 from rocket-admin/record-view-fix-no-widget-type
record view fix: display standard ui component from structure if new type is not set up in widget
2 parents 448eba2 + bb5d6a8 commit eac266b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/app/components/dashboard/db-table-view/db-table-row-view/db-table-row-view.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h2 class="mat-heading-2 row-preview-sidebar__title">Preview</h2>
9393
</ng-container>
9494

9595
<ng-template #recordContent>
96-
<ndc-dynamic *ngIf="isWidget(column.title); else simpleValue"
96+
<ndc-dynamic *ngIf="isWidget(column.title) && selectedRow.widgets[column.title].widget_type; else simpleValue"
9797
[ndcDynamicComponent]="UIwidgets[selectedRow.widgets[column.title].widget_type]"
9898
[ndcDynamicInputs]="{
9999
key: column.title,

0 commit comments

Comments
 (0)