fix: avoid creating request loop; fixes
@@ -384,13 +384,11 @@ export class DataMapperHostComponent implements OnInit, OnDestroy {
tap(saveHandler =>
this.cfg.mappingService.handleMappingSaveSuccess(saveHandler)
),
- debounceTime(500)
+ debounceTime(15)
)
.subscribe(async (saveHandler: Function) => {
- await this.cfg.mappingService.saveCurrentMapping();
const json = this.cfg.mappingService.serializeMappingsToJSON();
this.mappings.emit(JSON.stringify(json));
- this.cfg.mappingService.handleMappingSaveSuccess(saveHandler);
});
}
