Fix component workspace metadata not being set 93/129593/2
authorandre.schmid <andre.schmid@est.tech>
Fri, 10 Jun 2022 10:39:07 +0000 (11:39 +0100)
committerMichael Morris <michael.morris@est.tech>
Sat, 11 Jun 2022 19:15:23 +0000 (19:15 +0000)
commit1f240151bfac463eb1f5c1df1f497eed8495106e
tree5d02367e23c53a92b5a9940236cd680ab9e034c9
parent615b15a15ded1c428798a3b5411ba9613eb0baf1
Fix component workspace metadata not being set

The component metadata was not being initialized when the Component
constructor was being used.
Also, during the component checkout, instead of setting the
ComponentMetadata to the workspaceService, the code was setting the
component itself, causing issues in functionalities that uses the
metadata after a component checkout.

Change-Id: Ie9bb187ea04a2f4711d4df00ea335d531840378e
Issue-ID: SDC-4046
Signed-off-by: andre.schmid <andre.schmid@est.tech>
catalog-ui/src/app/models/components/component.ts
catalog-ui/src/app/view-models/workspace/workspace-view-model.ts