Skip to content

Commit 488f15f

Browse files
committed
FOUR-28225: Submit information > Nested Screen and Rich text variables are displayed
1 parent 17a0652 commit 488f15f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/components/inspector/variables-to-submit.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,23 @@ export default {
392392
* Single Responsibility: Only handles variable name extraction
393393
*/
394394
extractVariableFromItem(item, variables) {
395+
// Components that don't have submittable variables
396+
const displayOnlyComponents = [
397+
'FormNestedScreen',
398+
'FormHtmlViewer',
399+
'FormMultiColumn',
400+
'FormCollectionRecordControl',
401+
'FormCollectionViewControl',
402+
'FormAvatar',
403+
'FormListTable',
404+
'FormAnalyticsChart',
405+
'CaseProgressBar',
406+
'FileDownload',
407+
];
408+
// Skip display-only and container components that don't have submittable variables
409+
if (displayOnlyComponents.includes(item.component)) {
410+
return;
411+
}
395412
const variableName = item.config?.name;
396413
if (variableName && !variableName.startsWith('_parent.')) {
397414
variables[variableName] = null;

0 commit comments

Comments
 (0)