dafreels / metalus-api

Provides a set of APIs and a UI for working with the Metalus library
4 stars 12 forks source link

Empty layout object causes import of pipeline to fail #53

Closed edbalogh closed 4 years ago

edbalogh commented 4 years ago

Importing a pipeline with an empty layout object (not missing, but empty), causes error:

ERROR TypeError: Cannot read property 'x' of undefined at main.js:4647 at Array.forEach (<anonymous>) at PipelinesEditorComponent.push../src/app/pipelines/components/pipelines-editor/pipelines-editor.component.ts.PipelinesEditorComponent.generateModelFromPipeline (main.js:4643) at PipelinesEditorComponent.push../src/app/pipelines/components/pipelines-editor/pipelines-editor.component.ts.PipelinesEditorComponent.loadPipelineToDesigner (main.js:4580) at SafeSubscriber._next (main.js:4339) at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (vendor.js:234798) at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next (vendor.js:234736) at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next (vendor.js:234682) at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (vendor.js:234659) at Subject.push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next (vendor.js:234425) defaultErrorLogger @ vendor.js:73889