Skip to content

Commit

Permalink
cleanup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gatzjames committed Feb 27, 2025
1 parent 281c75f commit af9f4d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/insomnia/src/main/window-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,10 @@ export function createWindow({ firstLaunch }: { firstLaunch?: boolean } = {}): E
});

mainBrowserWindow.on('focus', () => {
console.log('[main] window focus');
mainBrowserWindow.webContents.send('mainWindowFocusChange', true);
});

mainBrowserWindow.on('blur', () => {
console.log('[main] window blur');
mainBrowserWindow.webContents.send('mainWindowFocusChange', false);
});

Expand Down
4 changes: 3 additions & 1 deletion packages/insomnia/src/ui/routes/project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ async function getAllRemoteFiles({
invariant(project, 'Project not found');

const remoteId = project.remoteId;
invariant(remoteId, 'Project is not a remote project');
if (!remoteId) {
return [];
}
const vcs = VCSInstance();

const [allPulledBackendProjectsForRemoteId, allFetchedRemoteBackendProjectsForRemoteId] = await Promise.all([
Expand Down
6 changes: 5 additions & 1 deletion packages/insomnia/src/ui/routes/remote-collections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ export const remoteLoader: LoaderFunction = async ({
invariant(project, 'Project not found');

const remoteId = project.remoteId;
invariant(remoteId, 'Project is not a remote project');
if (!remoteId) {
return {
backendProjectsToPull: [],
};
}
const vcs = VCSInstance();

const allPulledBackendProjectsForRemoteId = (
Expand Down

0 comments on commit af9f4d2

Please sign in to comment.