diff --git a/web/src/components/CourseRedactor.vue b/web/src/components/CourseRedactor.vue index 49f3ffc3..486ea195 100644 --- a/web/src/components/CourseRedactor.vue +++ b/web/src/components/CourseRedactor.vue @@ -673,14 +673,14 @@ watch: { 'course': { handler: function (newValue, oldValue) { - if (this.courseSyncHook) { - return; - } // Если курс загрузился и есть ID - делаем кнопки превью и публикации активными if (newValue.id) { $('#course-redactor__preview-button').removeAttr('disabled'); $('#course-redactor__publish-button').removeAttr('disabled'); } + if (this.courseSyncHook) { + return; + } this.saveCourseDraft(newValue, oldValue); }, deep: true,