Przeglądaj źródła

[notebook] Fix issue with properties using the incorrect attribute

Johan Ahlen 10 lat temu
rodzic
commit
81eebb1

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -705,7 +705,7 @@
     self.availableNewProperties = ko.computed(function() {
     self.availableNewProperties = ko.computed(function() {
       var addedIndex = {};
       var addedIndex = {};
       $.each(self.properties(), function(index, property) {
       $.each(self.properties(), function(index, property) {
-        addedIndex[property.name()] = true;
+        addedIndex[property.key()] = true;
       });
       });
       var result = $.grep(vm.availableSessionProperties(), function(property) {
       var result = $.grep(vm.availableSessionProperties(), function(property) {
         return ! addedIndex[property.name];
         return ! addedIndex[property.name];