mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
7 lines
212 B
TypeScript
7 lines
212 B
TypeScript
import type { ApiSpec } from '../api-spec';
|
|
import { isDesign, Workspace } from '../workspace';
|
|
|
|
export default function getWorkspaceName(w: Workspace, s: ApiSpec) {
|
|
return isDesign(w) ? s.fileName : w.name;
|
|
}
|