Skip to content

Commit

Permalink
Fix export loading using invalid variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
vikavorkin committed Nov 14, 2023
1 parent 815c0c9 commit 6a18a87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/filaments/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
// Load initial state
const initialState = useInitialTableState(namespace);

const { triggerExport, exportLoading } = useExport<IVendor>();
const { triggerExport, isLoading } = useExport<IVendor>();

// Fetch data from the API
// To provide the live updates, we use a custom solution (useLiveify) instead of the built-in refine "liveMode" feature.
Expand Down Expand Up @@ -186,7 +186,7 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
</Button>
</Dropdown>
{defaultButtons}
<ExportButton type="dashed" onClick={triggerExport} loading={exportLoading} >
<ExportButton type="dashed" onClick={triggerExport} loading={isLoading} >
{t("buttons.export")}
</ExportButton>
</>
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/spools/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const SpoolList: React.FC<IResourceComponentsProps> = () => {
// State for the switch to show archived spools
const [showArchived, setShowArchived] = useSavedState("spoolList-showArchived", false);

const { triggerExport, exportLoading } = useExport<ISpoolCollapsed>();
const { triggerExport, isLoading } = useExport<ISpoolCollapsed>();

// Fetch data from the API
// To provide the live updates, we use a custom solution (useLiveify) instead of the built-in refine "liveMode" feature.
Expand Down Expand Up @@ -263,7 +263,7 @@ export const SpoolList: React.FC<IResourceComponentsProps> = () => {
</Button>
</Dropdown>
{defaultButtons}
<ExportButton type="dashed" onClick={triggerExport} loading={exportLoading} >
<ExportButton type="dashed" onClick={triggerExport} loading={isLoading} >
{t("buttons.export")}
</ExportButton>
</>
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/vendors/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const VendorList: React.FC<IResourceComponentsProps> = () => {
// Load initial state
const initialState = useInitialTableState(namespace);

const { triggerExport, exportLoading } = useExport<IVendor>();
const { triggerExport, isLoading } = useExport<IVendor>();

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

0 comments on commit 6a18a87

Please sign in to comment.