Skip to content

Commit 2f65245

Browse files
committed
naming
1 parent 749ea56 commit 2f65245

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/insomnia/src/ui/components/command-palette.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const CommandPaletteCombobox = ({ close }: { close: () => void }) => {
124124
const remoteFiles = remoteFilesLoader.data?.files || [];
125125

126126
const currentFilesData = commandsLoader.data?.current.files || [];
127-
const currentRemoteFilesData = remoteFiles.filter(file => file.item.teamProjectRemoteId === projectId).filter(file => !currentFilesData.some(f => f.id === file.item.id));
127+
const currentRemoteFilesData = remoteFiles.filter(file => file.item.teamProjectLocalId === projectId).filter(file => !currentFilesData.some(f => f.id === file.item.id));
128128

129129
console.log({ currentFilesData });
130130

@@ -171,7 +171,7 @@ const CommandPaletteCombobox = ({ close }: { close: () => void }) => {
171171
})) || [];
172172

173173
const otherFilesData = commandsLoader.data?.other.files || [];
174-
const otherRemoteFilesData = remoteFiles.filter(file => file.item.teamProjectRemoteId !== projectId).filter(file => !otherFilesData.some(f => f.id === file.item.id));
174+
const otherRemoteFilesData = remoteFiles.filter(file => file.item.teamProjectLocalId !== projectId).filter(file => !otherFilesData.some(f => f.id === file.item.id));
175175

176176
const otherFiles = [...otherFilesData, ...otherRemoteFilesData].map(file => ({
177177
...file,

packages/insomnia/src/ui/routes/commands.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ interface RemoteFile {
292292
}
293293

294294
export interface RemoteFilesLoaderResult {
295-
files: CommandRemoteItem<RemoteFile & { teamProjectRemoteId: string; scope: 'unsynced' }>[];
295+
files: CommandRemoteItem<RemoteFile & { teamProjectLocalId: string; scope: 'unsynced' }>[];
296296
}
297297

298298
export const remoteFilesLoader: LoaderFunction = async (): Promise<RemoteFilesLoaderResult> => {
@@ -332,7 +332,7 @@ export const remoteFilesLoader: LoaderFunction = async (): Promise<RemoteFilesLo
332332
url: `/organization/${file.organizationId}/project`,
333333
pullUrl: parentProject ? `/organization/${file.organizationId}/project/${file.teamProjectId}/remote-collections/pull` : '',
334334
name: file.name,
335-
item: { ...file, teamProjectRemoteId: parentProject?._id || '', scope: 'unsynced' as const },
335+
item: { ...file, teamProjectLocalId: parentProject?._id || '', scope: 'unsynced' as const },
336336
organizationName: organizations.find(org => org.id === file.organizationId)?.display_name || '',
337337
projectName: parentProject?.name || '',
338338
};

0 commit comments

Comments
 (0)