Преглед на файлове

HUE-9000 [editor] Prevent error message on history status checks

Johan Ahlen преди 6 години
родител
ревизия
d2955f791e
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      desktop/core/src/desktop/js/apps/notebook2/notebook.js

+ 4 - 1
desktop/core/src/desktop/js/apps/notebook2/notebook.js

@@ -624,7 +624,10 @@ export default class Notebook {
 
     const updateHistoryCall = item => {
       apiHelper
-        .checkStatus({ notebookJson: JSON.stringify({ uuid: item.uuid() }) })
+        .checkStatus({
+          notebookJson: JSON.stringify({ uuid: item.uuid() }),
+          silenceErrors: true
+        })
         .then(data => {
           const status =
             data.status === -3