question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ui-react gets error where it doesn't pass mappingDefinitionId

See original GitHub issue

mappingDefinitionId, etc. grep -R 'mappingDefinitionId' services/file-management.service.ts: const url = this.cfg.initCfg.baseMappingServiceUrl + 'mappings/' + this.cfg.mappingDefinitionId services/file-management.service.ts: const url = this.cfg.initCfg.baseMappingServiceUrl + 'mapping/RESET/' + this.cfg.mappingDefinitionId; services/file-management.service.ts: const mappingDefinitionIds: number[] = [this.cfg.mappingDefinitionId]; services/file-management.service.ts: for (const mappingDefinitionId of mappingDefinitionIds) { services/file-management.service.ts: const url: string = baseURL + mappingDefinitionId; services/file-management.service.ts: return this.cfg.mappingDefinitionId; services/mapping-identifier.service.ts: const mappingDefinitionId: number = +urlMappingId; services/mapping-identifier.service.ts: if (isNaN(mappingDefinitionId) || mappingDefinitionId == null) { services/mapping-identifier.service.ts: return mappingDefinitionId; services/initialization.service.ts: this.cfg.mappings = new MappingDefinition(this.cfg.mappingDefinitionId); services/initialization.service.ts: this.cfg.mappings = new MappingDefinition(this.cfg.mappingDefinitionId); services/initialization.service.ts: await this.fetchMappingById(this.cfg.mappingDefinitionId); services/initialization.service.ts: if (!await this.fetchMappingById(this.cfg.mappingDefinitionId)) { services/initialization.service.ts: + this.cfg.mappingDefinitionId).toPromise() services/initialization.service.ts: this.cfg.mappingDefinitionId); services/initialization.service.ts: async fetchMappingById(mappingDefinitionId: any): Promise<boolean> { services/initialization.service.ts: if (mappingDefinitionId == null) { services/initialization.service.ts: this.cfg.mappingService.fetchMappings([mappingDefinitionId], this.cfg.mappings).toPromise() services/mapping-management.service.ts: const url: string = this.cfg.initCfg.baseMappingServiceUrl + 'mapping/validate/' + this.cfg.mappingDefinitionId; utils/mapping-serializer.ts: cfg.mappings = new MappingDefinition(cfg.mappingDefinitionId); utils/mapping-serializer.ts: cfg.mappings.name = this.deserializeAtlasMappingName(json, cfg.mappingDefinitionId); utils/mapping-serializer.ts: * Return the AtlasMap mappings file name from the specified JSON buffer or an generate it from mappingDefinitionId. utils/mapping-serializer.ts: static deserializeAtlasMappingName(json: any, mappingDefinitionId: number): string { utils/mapping-serializer.ts: return 'UI.' + mappingDefinitionId; utils/mapping-serializer.spec.ts: cfg.mappingDefinitionId = 0; components/toolbar/toolbar.component.ts: fileName = 'atlasmap-mapping-' + this.cfg.mappingDefinitionId + '.adm'; components/data-mapper-example-host.component.ts: c.mappingDefinitionId = this.mappingIdentifierService.getCurrentMappingDefinitionId(); models/mapping-definition.model.ts: constructor(mappingDefinitionId: number) { models/mapping-definition.model.ts: this.name = MappingDefinition.MAPPING_NAME_PREFIX + mappingDefinitionId; models/config.model.ts: mappingDefinitionId: number;

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
igarashitmcommented, Dec 11, 2019

@AbbassFaytaroony no sweat, I think Paul is almost finishing this.

0reactions
AbbassFaytaroonycommented, Dec 11, 2019

@pleacu Ok, on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError Handling in React.js for Map Function | Pluralsight
Learn why this error occurs and how to fix it: Uncaught TypeError: this.props.data.map is not a function.
Read more >
Error Handling in React 16 – React Blog
As React 16 release is getting closer, we would like to announce a few changes to how React handles JavaScript errors inside components....
Read more >
map function not working in React - Stack Overflow
I am not sure why I get an error pointing to the map function. I am not able to render the array i...
Read more >
How to Read React Errors (fix 'Cannot read property of ...
The Quick Fix. This error usually means you're trying to use .map on an array, but that array isn't defined yet.
Read more >
Redux Fundamentals, Part 5: UI and React
For example, passing this selector to useSelector will cause the component to always re-render, because array.map() always returns a new array ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found