Commit f456488
fix(visual-editor): revert field display to hardcoded types, keep DB types in modal only
The field display component was calling getFieldTypes() on every
ngOnInit (one API call per field rendered), which overwhelmed the page
and prevented the save button from working in Playwright tests.
Revert the display component to use the original getTranslatedTypes()
with hardcoded types and optional chaining (?.name ?? '') to prevent
the original crash. The DB-based field type lookup stays in the MODAL
component only (where it matters for new field creation).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5542eba commit f456488
File tree
1 file changed
+6
-22
lines changed- eform-client/src/app/modules/eforms/eform-visual-editor/components/eform-visual-editor-elements/field/visual-editor-field
1 file changed
+6
-22
lines changedLines changed: 6 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | | - | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
| |||
80 | 77 | | |
81 | 78 | | |
82 | 79 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
89 | 83 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 84 | + | |
96 | 85 | | |
97 | 86 | | |
98 | 87 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 88 | | |
105 | 89 | | |
106 | 90 | | |
| |||
0 commit comments