Explorar o código

HUE-8840 [catalog] Fix change database description

(cherry picked from commit 76091ded8e0d28b1c79a7212903a9a353f4e21c1)
(cherry picked from commit 0c010d8c8a485d340309561dd9c13e0e05d57033)
jdesjean %!s(int64=6) %!d(string=hai) anos
pai
achega
6fcc56f7b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/js/api/apiHelper.js

+ 1 - 1
desktop/core/src/desktop/js/api/apiHelper.js

@@ -1524,7 +1524,7 @@ class ApiHelper {
       source_type: options.sourceType
     };
     if (options.path.length === 1) {
-      url = '/metastore/databases/' + options.path[1] + '/alter';
+      url = '/metastore/databases/' + options.path[0] + '/alter';
       data.properties = ko.mapping.toJSON(options.properties);
     } else if (options.path.length === 2) {
       url = '/metastore/table/' + options.path[0] + '/' + options.path[1] + '/alter';