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 @@ -29,7 +29,7 @@ export const dialogsDispatcher = () => {
reset(dialogState({ projectId, dialogId: id }));
set(dialogIdsState(projectId), (previousDialogIds) => previousDialogIds.filter((dialogId) => dialogId !== id));

//remove dialog should remove all locales lu and lg files and the dialog schema file
//remove dialog should remove all locales lu, lg and qna files and the dialog schema file
await removeLgFileState(callbackHelpers, { id, projectId });
await removeLuFileState(callbackHelpers, { id, projectId });
await removeQnAFileState(callbackHelpers, { id, projectId });
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/client/src/utils/qnaFileStatusStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class QnaFileStatusStorage {
}

public removeFileStatus(projectId: string, fileId: string) {
if (!projectId) return;
if (!projectId || !this._all[projectId]) return;
if (typeof this._all[projectId][fileId] !== 'undefined') {
delete this._all[projectId][fileId];
this.storage.set(KEY, this._all);
Expand Down