Skip to content

Commit

Permalink
#3216 Added check for an existing release to fix save bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tilovillwock committed Nov 11, 2024
1 parent 3ad4361 commit 7ad94db
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,10 @@ angular.module('metadatamanagementApp')

ctrl.saveDataPackage = function() {
if ($scope.dataPackageForm.$valid) {
if (CurrentProjectService.getCurrentProject().release.isPreRelease) {
if (CurrentProjectService.getCurrentProject() &&
CurrentProjectService.getCurrentProject().release &&
CurrentProjectService.getCurrentProject().release.isPreRelease)
{
CommonDialogsService.showConfirmEditPreReleaseDialog(
'global.common-dialogs' +
'.confirm-edit-pre-released-project.title',
Expand Down

0 comments on commit 7ad94db

Please sign in to comment.