diff --git a/Composer/packages/client/__tests__/components/design.test.js b/Composer/packages/client/__tests__/components/design.test.js
index e54ee79d87..ead441d63f 100644
--- a/Composer/packages/client/__tests__/components/design.test.js
+++ b/Composer/packages/client/__tests__/components/design.test.js
@@ -9,7 +9,7 @@ import { dialogs } from '../constants.json';
import { TriggerCreationModal } from './../../src/components/ProjectTree/TriggerCreationModal';
import { ProjectTree } from './../../src/components/ProjectTree';
-import NewDialogModal from './../../src/pages/design/new-dialog-modal';
+import { CreateDialogModal } from './../../src/pages/design/createDialogModal';
describe('', () => {
it('should render the ProjectTree', async () => {
const dialogId = 'Main';
@@ -36,14 +36,14 @@ describe('', () => {
expect(handleSelect).toHaveBeenCalledTimes(1);
});
- it('should open NewDialogModal, close after clicking cancel', async () => {
+ it('should open CreateDialog Modal, close after clicking cancel', async () => {
let isOpen = true;
const handleDismiss = jest.fn(() => {
isOpen = false;
});
const handleSubmit = jest.fn(() => {});
const { getByText } = render(
- {}} />
+
);
const cancelButton = getByText('Cancel');
fireEvent.click(cancelButton);
diff --git a/Composer/packages/client/src/CreationFlow/DefineConversation/index.tsx b/Composer/packages/client/src/CreationFlow/DefineConversation/index.tsx
index 2ca8ec2d0e..4f2dba132e 100644
--- a/Composer/packages/client/src/CreationFlow/DefineConversation/index.tsx
+++ b/Composer/packages/client/src/CreationFlow/DefineConversation/index.tsx
@@ -38,7 +38,6 @@ interface DefineConversationProps {
onDismiss: () => void;
onCurrentPathUpdate?: (newPath?: string, storageId?: string) => void;
onGetErrorMessage?: (text: string) => void;
- enableLocationBrowse: boolean;
focusedStorageFolder?: StorageFolder;
currentPath?: string;
bots?: Bots[];
@@ -47,15 +46,7 @@ interface DefineConversationProps {
const initialFormDataError: FormDataError = {};
export const DefineConversation: React.FC = props => {
- const {
- onSubmit,
- onDismiss,
- onCurrentPathUpdate,
- enableLocationBrowse,
- focusedStorageFolder,
- currentPath,
- bots,
- } = props;
+ const { onSubmit, onDismiss, onCurrentPathUpdate, focusedStorageFolder, currentPath, bots } = props;
const { state } = useContext(StoreContext);
const { templateId } = state;
@@ -130,7 +121,6 @@ export const DefineConversation: React.FC = props => {
const handleSubmit = e => {
e.preventDefault();
const errors = validateForm(formData);
-
if (Object.keys(errors).length) {
setFormDataErrors(errors);
return;
@@ -145,7 +135,7 @@ export const DefineConversation: React.FC = props => {