X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2FCatalogPackageManager.js;fp=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2FCatalogPackageManager.js;h=0811093df0966f2047fcb9e9b805545cfb1f09b8;hp=c0b996cbc517c2d428e5dd45f2b23267bc6dec64;hb=40667140982c8d9453d09f7ce27880801db294bb;hpb=31ca8b157982cae1624667c8d7011c06d3207a7b diff --git a/skyquake/plugins/composer/src/src/components/CatalogPackageManager.js b/skyquake/plugins/composer/src/src/components/CatalogPackageManager.js index c0b996cbc..0811093df 100644 --- a/skyquake/plugins/composer/src/src/components/CatalogPackageManager.js +++ b/skyquake/plugins/composer/src/src/components/CatalogPackageManager.js @@ -88,7 +88,7 @@ const CatalogPackageManager = React.createClass({ var createItem = function (catalogPackage) { const onClickRemove = function () { - CatalogPackageManagerActions.removeCatalogPackage(catalogPackage); + CatalogPackageManagerActions.removeCatalogOperation(catalogPackage); }; const classNames = ClassNames('item', {'-error': catalogPackage.error, '-success': catalogPackage.success}); return ( @@ -106,11 +106,11 @@ const CatalogPackageManager = React.createClass({ ); }; - const packages = this.state.packages || []; + const operations = this.state.operations || []; return (
- {packages.map(createItem)} + {operations.map(createItem)}
);