Skip to content

Commit 4641403

Browse files
committed
Remove unnecessary loading state param
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
1 parent 98524a3 commit 4641403

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

public/pages/workflow_detail/tools/resources/resource_flyout.tsx

+1-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
EuiTitle,
1515
EuiText,
1616
EuiEmptyPrompt,
17-
EuiLoadingSpinner,
1817
EuiHealth,
1918
EuiSpacer,
2019
} from '@elastic/eui';
@@ -24,7 +23,6 @@ interface ResourceFlyoutProps {
2423
resource: WorkflowResource;
2524
resourceDetails: string;
2625
onClose: () => void;
27-
loading: boolean;
2826
errorMessage?: string;
2927
}
3028

@@ -70,7 +68,7 @@ export function ResourceFlyout(props: ResourceFlyoutProps) {
7068
</EuiTitle>
7169
</EuiFlexItem>
7270
<EuiFlexItem grow={true}>
73-
{!props.errorMessage && !props.loading ? (
71+
{!props.errorMessage ? (
7472
<EuiCodeBlock
7573
language="json"
7674
fontSize="m"
@@ -79,11 +77,6 @@ export function ResourceFlyout(props: ResourceFlyoutProps) {
7977
>
8078
{props.resourceDetails}
8179
</EuiCodeBlock>
82-
) : props.loading ? (
83-
<EuiEmptyPrompt
84-
icon={<EuiLoadingSpinner size="xl" />}
85-
title={<h2>Loading</h2>}
86-
/>
8780
) : (
8881
<EuiEmptyPrompt
8982
iconType="alert"

public/pages/workflow_detail/tools/resources/resource_list_with_flyout.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export function ResourceListWithFlyout(props: ResourceListFlyoutProps) {
5050
undefined
5151
);
5252
const {
53-
loading,
5453
getIndexErrorMessage,
5554
getIngestPipelineErrorMessage,
5655
getSearchPipelineErrorMessage,
@@ -176,7 +175,6 @@ export function ResourceListWithFlyout(props: ResourceListFlyoutProps) {
176175
resource={selectedRowData}
177176
resourceDetails={resourceDetails}
178177
onClose={closeFlyout}
179-
loading={loading}
180178
errorMessage={rowErrorMessage || undefined}
181179
/>
182180
)}

0 commit comments

Comments
 (0)