Skip to content

Commit 98092ba

Browse files
committed
fix: Populate JSON and Original tabs in atomic conversion
Fixed data mapping issue where atomic conversion was not properly setting JSON and Original data for the tabs: - Set jsonOutput state with response.data.data.json - Set originalDataOutput state (not originalData) - Ensures all three tabs (YAML, JSON, ORIGINAL) display data Backend was returning correct data structure, issue was frontend state variable mapping in atomic conversion handler.
1 parent c93b331 commit 98092ba

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

logs/backend.pid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
118565
1+
119637

logs/frontend.pid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
118601
1+
119670

public/src/components/PasspointProfileConverter.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ function PasspointProfileConverter() {
115115
if (response.data.data) {
116116
setYamlOutput(response.data.data.yaml || 'No YAML conversion available');
117117
setComprehensiveYamlOutput(response.data.data.yaml || 'No comprehensive YAML available');
118-
setOriginalData(response.data.data.original || '');
118+
setJsonOutput(response.data.data.json || 'No JSON conversion available');
119+
setOriginalDataOutput(response.data.data.original || '');
119120
}
120121

121122
// Clear alerts since conversion was successful

0 commit comments

Comments
 (0)