Skip to content

Commit dda54b7

Browse files
committed
Fix loading screen overlays
1 parent ece0246 commit dda54b7

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

workspaces/ballerina/ballerina-visualizer/src/views/BI/HelperPaneNew/Views/RecordConfigModal.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -594,16 +594,14 @@ export function ConfigureRecordPage(props: ConfigureRecordPageProps) {
594594
/>
595595
</LabelContainer>
596596
)}
597-
{!isLoading && (
598-
selectedMemberName && recordModel?.length > 0 ? (
599-
<RecordConfigView
600-
recordModel={recordModel}
601-
onModelChange={handleModelChange}
602-
/>
603-
) : (
604-
<Typography variant="body3">Record construction assistance is unavailable.</Typography>
605-
)
606-
)}
597+
{selectedMemberName && recordModel?.length > 0 ? (
598+
<RecordConfigView
599+
recordModel={recordModel}
600+
onModelChange={handleModelChange}
601+
/>
602+
) : !isLoading ? (
603+
<Typography variant="body3">Record construction assistance is unavailable.</Typography>
604+
) : null}
607605
</LeftColumn>
608606
<RightColumn>
609607
<ExpressionEditorContainer>
@@ -648,7 +646,7 @@ export function ConfigureRecordPage(props: ConfigureRecordPageProps) {
648646
extractArgsFromFunction={wrappedExtractArgsFromFunction}
649647
getHelperPane={wrappedGetHelperPane}
650648
sx={{ height: "350px" }}
651-
isExpandedVersion={false}
649+
isExpandedVersion={false}
652650
/>
653651
{formDiagnostics && formDiagnostics.length > 0 && (
654652
<ErrorBanner errorMsg={formDiagnostics.map((d: any) => d.message).join(', ')} />

0 commit comments

Comments
 (0)