Skip to content

Commit 93141de

Browse files
VasiliVasili
Vasili
authored and
Vasili
committed
Fix export loading using invalid variable.
1 parent 53a9c9c commit 93141de

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

client/src/pages/filaments/list.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
7676
// Load initial state
7777
const initialState = useInitialTableState(namespace);
7878

79-
const { triggerExport, exportLoading } = useExport<IVendor>();
79+
const { triggerExport, isLoading } = useExport<IVendor>();
8080

8181
// Fetch data from the API
8282
// To provide the live updates, we use a custom solution (useLiveify) instead of the built-in refine "liveMode" feature.
@@ -186,7 +186,7 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
186186
</Button>
187187
</Dropdown>
188188
{defaultButtons}
189-
<ExportButton type="dashed" onClick={triggerExport} loading={exportLoading} >
189+
<ExportButton type="dashed" onClick={triggerExport} loading={isLoading} >
190190
{t("buttons.export")}
191191
</ExportButton>
192192
</>

client/src/pages/spools/list.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const SpoolList: React.FC<IResourceComponentsProps> = () => {
9898
// State for the switch to show archived spools
9999
const [showArchived, setShowArchived] = useSavedState("spoolList-showArchived", false);
100100

101-
const { triggerExport, exportLoading } = useExport<ISpoolCollapsed>();
101+
const { triggerExport, isLoading } = useExport<ISpoolCollapsed>();
102102

103103
// Fetch data from the API
104104
// To provide the live updates, we use a custom solution (useLiveify) instead of the built-in refine "liveMode" feature.
@@ -263,7 +263,7 @@ export const SpoolList: React.FC<IResourceComponentsProps> = () => {
263263
</Button>
264264
</Dropdown>
265265
{defaultButtons}
266-
<ExportButton type="dashed" onClick={triggerExport} loading={exportLoading} >
266+
<ExportButton type="dashed" onClick={triggerExport} loading={isLoading} >
267267
{t("buttons.export")}
268268
</ExportButton>
269269
</>

client/src/pages/vendors/list.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const VendorList: React.FC<IResourceComponentsProps> = () => {
2424
// Load initial state
2525
const initialState = useInitialTableState(namespace);
2626

27-
const { triggerExport, exportLoading } = useExport<IVendor>();
27+
const { triggerExport, isLoading } = useExport<IVendor>();
2828

2929
// Fetch data from the API
3030
const { tableProps, sorters, setSorters, filters, setFilters, current, pageSize, setCurrent } = useTable<IVendor>({
@@ -122,7 +122,7 @@ export const VendorList: React.FC<IResourceComponentsProps> = () => {
122122
</Button>
123123
</Dropdown>
124124
{defaultButtons}
125-
<ExportButton type="dashed" onClick={triggerExport} loading={exportLoading} >
125+
<ExportButton type="dashed" onClick={triggerExport} loading={isLoading} >
126126
{t("buttons.export")}
127127
</ExportButton>
128128
</>

0 commit comments

Comments
 (0)