diff --git a/zaqar_ui/static/dashboard/project/queues/steps/queue-metadata/queue-metadata.controller.js b/zaqar_ui/static/dashboard/project/queues/steps/queue-metadata/queue-metadata.controller.js index b0fdf1d..1c39886 100644 --- a/zaqar_ui/static/dashboard/project/queues/steps/queue-metadata/queue-metadata.controller.js +++ b/zaqar_ui/static/dashboard/project/queues/steps/queue-metadata/queue-metadata.controller.js @@ -87,7 +87,7 @@ return {data: queue.metadata}; } else { var deferred = $q.defer(); - deferred.resolve({data: []}); + deferred.resolve({data: {}}); return deferred.promise; } } @@ -95,10 +95,12 @@ function getExistingMetdataPromise(queue) { if (angular.isDefined(queue.id)) { + $scope.stepModels.queueMetadataForm = queue.metadata; return {data: queue.metadata}; } else { var deferred = $q.defer(); - deferred.resolve({data: []}); + deferred.resolve({data: {}}); + $scope.stepModels.queueMetadataForm = {}; return deferred.promise; } }