@@ -22,7 +22,7 @@ import { getGitHubOctokitInstance } from '../../features/github/GitHubUtils';
22
22
import { store } from '../../pages/createStore' ;
23
23
import { OverallState } from '../application/ApplicationTypes' ;
24
24
import { LOGIN_GITHUB , LOGOUT_GITHUB } from '../application/types/SessionTypes' ;
25
- import { getPersistenceFile , retrieveFilesInWorkspaceAsRecord } from '../fileSystem/FileSystemUtils' ;
25
+ import { getPersistenceFile , retrieveFilesInWorkspaceAsRecord } from '../fileSystem/FileSystemUtils' ;
26
26
import FileExplorerDialog , { FileExplorerDialogProps } from '../gitHubOverlay/FileExplorerDialog' ;
27
27
import RepositoryDialog , { RepositoryDialogProps } from '../gitHubOverlay/RepositoryDialog' ;
28
28
import { actions } from '../utils/ActionsHelper' ;
@@ -179,6 +179,7 @@ function* githubSaveFileAs(): any {
179
179
type ListForAuthenticatedUserData = GetResponseDataTypeFromEndpointMethod <
180
180
typeof octokit . repos . listForAuthenticatedUser
181
181
> ;
182
+
182
183
const userRepos : ListForAuthenticatedUserData = yield call (
183
184
async ( ) =>
184
185
await octokit . paginate ( octokit . repos . listForAuthenticatedUser , {
@@ -315,7 +316,7 @@ function* githubCreateFile({ payload }: ReturnType<typeof actions.githubCreateFi
315
316
const githubLoginId = authUser . data . login ;
316
317
const persistenceFile = getPersistenceFile ( '' ) ;
317
318
if ( persistenceFile === undefined ) {
318
- throw new Error ( "persistencefile not found for this filepath: " + filePath ) ;
319
+ throw new Error ( "persistencefile not found for this filepath: " + '' ) ;
319
320
}
320
321
const repoName = persistenceFile . repoName ;
321
322
const githubEmail = authUser . data . email ;
@@ -418,9 +419,9 @@ function* githubDeleteFolder({ payload }: ReturnType<typeof actions.githubDelete
418
419
const authUser : GetAuthenticatedResponse = yield call ( octokit . users . getAuthenticated ) ;
419
420
420
421
const githubLoginId = authUser . data . login ;
421
- const persistenceFile = getPersistenceFile ( filePath ) ;
422
+ const persistenceFile = getPersistenceFile ( '' ) ;
422
423
if ( persistenceFile === undefined ) {
423
- throw new Error ( "persistence file not found for this filepath: " + filePath ) ;
424
+ throw new Error ( "persistence file not found for this filepath: " + '' ) ;
424
425
}
425
426
const repoName = persistenceFile . repoName ;
426
427
const parentFolderPath = persistenceFile . parentFolderPath ;
@@ -515,9 +516,9 @@ function* githubRenameFolder({ payload }: ReturnType<typeof actions.githubRename
515
516
const authUser : GetAuthenticatedResponse = yield call ( octokit . users . getAuthenticated ) ;
516
517
517
518
const githubLoginId = authUser . data . login ;
518
- const persistenceFile = getPersistenceFile ( oldFilePath ) ;
519
+ const persistenceFile = getPersistenceFile ( '' ) ;
519
520
if ( persistenceFile === undefined ) {
520
- throw new Error ( "persistence file not found for this filepath: " + oldFilePath ) ;
521
+ throw new Error ( "persistence file not found for this filepath: " + '' ) ;
521
522
}
522
523
const repoName = persistenceFile . repoName ;
523
524
const parentFolderPath = persistenceFile . parentFolderPath ;
0 commit comments