diff --git a/apps/yaak-client/components/ImportDataDialog.tsx b/apps/yaak-client/components/ImportDataDialog.tsx index bf1831fe..3d230c9f 100644 --- a/apps/yaak-client/components/ImportDataDialog.tsx +++ b/apps/yaak-client/components/ImportDataDialog.tsx @@ -1,4 +1,10 @@ -import type { Folder, ImportDestination, ImportPlan, Workspace } from "@yaakapp-internal/models"; +import { + type Folder, + type ImportDestination, + type ImportPlan, + modelTypeLabel, + type Workspace, +} from "@yaakapp-internal/models"; import { HStack, Icon, VStack } from "@yaakapp-internal/ui"; import { platform } from "@yaakapp-internal/platform"; import classNames from "classnames"; @@ -135,12 +141,12 @@ export function ImportDataDialog({ if (plan != null) { const counts = [ - ["Workspace", plan.resources.workspaces.length], - ["Environment", plan.resources.environments.length], - ["Folder", plan.resources.folders.length], - ["HTTP Request", plan.resources.httpRequests.length], - ["gRPC Request", plan.resources.grpcRequests.length], - ["WebSocket Request", plan.resources.websocketRequests.length], + [plan.resources.workspaces[0]?.resource, plan.resources.workspaces.length], + [plan.resources.environments[0]?.resource, plan.resources.environments.length], + [plan.resources.folders[0]?.resource, plan.resources.folders.length], + [plan.resources.httpRequests[0]?.resource, plan.resources.httpRequests.length], + [plan.resources.grpcRequests[0]?.resource, plan.resources.grpcRequests.length], + [plan.resources.websocketRequests[0]?.resource, plan.resources.websocketRequests.length], ] as const; const destinationLabel = plan.destination.type === "new_workspace" @@ -159,11 +165,11 @@ export function ImportDataDialog({