Skip to content

Commit

Permalink
fix: create from QnA maker (microsoft#4450)
Browse files Browse the repository at this point in the history
* fix create from QnA maker

* typo
  • Loading branch information
zhixzhan authored Oct 21, 2020
1 parent 98292ce commit f458e8f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ const CreationFlow: React.FC<CreationFlowProps> = () => {
};

const handleDefineConversationSubmit = async (formData, templateId: string) => {
// If selected template is qnaSample then route to QNA import modal
if (templateId === 'QnASample') {
setFormData(formData);
navigate(`./QnASample/importQnA`);
return;
}
// If selected template is vaCore then route to VA Customization modal
if (templateId === 'va-core') {
setFormData(formData);
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/client/src/pages/design/DesignPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ const DesignPage: React.FC<RouteComponentProps<{ dialogId: string; projectId: st
onSubmit={onTriggerCreationSubmit}
/>
)}
<CreateQnAModal dialogId={dialogId} projectId={projectId} qnaFiles={qnaFiles} onSubmit={handleCreateQnA} />)
<CreateQnAModal dialogId={dialogId} projectId={projectId} qnaFiles={qnaFiles} onSubmit={handleCreateQnA} />
{displaySkillManifest && (
<DisplayManifestModal
manifestId={displaySkillManifest}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,7 @@ export const navigateToBot = (
if (projectId) {
const { set } = callbackHelpers;
set(currentProjectIdState, projectId);
let url = `/bot/${projectId}/dialogs/${mainDialog}`;
if (templateId === QnABotTemplateId) {
url = `/bot/${projectId}/knowledge-base/${mainDialog}`;
navigateTo(url, { state: { qnaKbUrls } });
return;
}
const url = `/bot/${projectId}/dialogs/${mainDialog}`;
navigateTo(url);
}
};
Expand Down

0 comments on commit f458e8f

Please sign in to comment.