fix: before admin stations removal
This commit is contained in:
@@ -350,7 +350,7 @@ export const useImportApply = () => {
|
||||
onSuccess: (result) => {
|
||||
queryClient.invalidateQueries({ queryKey: ['catalogSearch'] });
|
||||
toast.success(
|
||||
`Import completed: ${result.created} created, ${result.updated} updated, ${result.deleted} deleted`
|
||||
`Import completed: ${result.created} created, ${result.updated} updated`
|
||||
);
|
||||
},
|
||||
onError: (error: ApiError) => {
|
||||
|
||||
@@ -462,9 +462,6 @@ export const AdminCatalogMobileScreen: React.FC = () => {
|
||||
<div className="bg-blue-100 text-blue-800 px-3 py-2 rounded-lg">
|
||||
<strong>{importPreview.toUpdate.length}</strong> to update
|
||||
</div>
|
||||
<div className="bg-red-100 text-red-800 px-3 py-2 rounded-lg">
|
||||
<strong>{importPreview.toDelete.length}</strong> to delete
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Errors */}
|
||||
|
||||
@@ -181,7 +181,6 @@ export interface CatalogSearchResponse {
|
||||
|
||||
// Catalog import types
|
||||
export interface ImportRow {
|
||||
action: 'add' | 'update' | 'delete';
|
||||
year: number;
|
||||
make: string;
|
||||
model: string;
|
||||
@@ -199,7 +198,6 @@ export interface ImportPreviewResult {
|
||||
previewId: string;
|
||||
toCreate: ImportRow[];
|
||||
toUpdate: ImportRow[];
|
||||
toDelete: ImportRow[];
|
||||
errors: ImportError[];
|
||||
valid: boolean;
|
||||
}
|
||||
@@ -207,7 +205,6 @@ export interface ImportPreviewResult {
|
||||
export interface ImportApplyResult {
|
||||
created: number;
|
||||
updated: number;
|
||||
deleted: number;
|
||||
errors: ImportError[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user