Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ export const projectDispatcher = () => {
});
projectIdCache.set(projectId);
} catch (ex) {
if (projectId === projectIdCache.get()) {
projectIdCache.clear();
}
set(botProjectIdsState, []);
handleProjectFailure(callbackHelpers, ex);
navigateTo('/home');
Expand Down
4 changes: 2 additions & 2 deletions Composer/packages/server/src/services/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class BotProjectService {
if (!(await StorageService.checkBlob('default', path, user))) {
BotProjectService.deleteRecentProject(path);
BotProjectService.removeProjectIdFromCache(projectId);
throw new Error(`file ${path} does not exist`);
throw new Error(`${path} doesn't seem to be exist any longer`);
}
const project = new BotProject({ storageId: 'default', path: path }, user, eTag);
await project.init();
Expand Down Expand Up @@ -304,7 +304,7 @@ export class BotProjectService {
if (!(await StorageService.checkBlob('default', path, user))) {
BotProjectService.deleteRecentProject(path);
BotProjectService.removeProjectIdFromCache(matchingProjectId);
throw new Error(`file ${path} does not exist`);
throw new Error(`${path} doesn't seem to be exist any longer`);
}
const project = new BotProject({ storageId: 'default', path: path }, user, eTag);
await project.init();
Expand Down