Skip to content

Commit 025d2fe

Browse files
committed
nit
1 parent c0a306e commit 025d2fe

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

packages/compass-collection/src/components/mock-data-generator-modal/mock-data-generator-modal.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('MockDataGeneratorModal', () => {
168168
expect(mockServices.atlasAiService.getAbortSignalReceived()).to.be.true;
169169
});
170170

171-
it('cancels in-flight faker mapping requests when the back button is clicked', async () => {
171+
it('cancels in-flight faker mapping requests when the back button is clicked after schema confirmation', async () => {
172172
const mockServices = createMockServicesWithSlowAiRequest();
173173
renderModal({ mockServices: mockServices as any });
174174

packages/compass-collection/src/modules/collection-tab.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,7 @@ const reducer: Reducer<CollectionState, Action> = (
384384
) {
385385
if (
386386
state.mockDataGenerator.currentStep !==
387-
MockDataGeneratorStep.SCHEMA_CONFIRMATION
388-
) {
389-
return state;
390-
}
391-
392-
if (
387+
MockDataGeneratorStep.SCHEMA_CONFIRMATION ||
393388
state.fakerSchemaGeneration.status === 'in-progress' ||
394389
state.fakerSchemaGeneration.status === 'completed'
395390
) {

0 commit comments

Comments
 (0)