Mao 4 лет назад
Родитель
Сommit
0862e1718d

+ 0 - 3
packages/app/src/components/BookmarkButton.jsx

@@ -34,9 +34,6 @@ class BookmarkButton extends React.Component {
       if (onChangeInvoked != null) {
       if (onChangeInvoked != null) {
         onChangeInvoked();
         onChangeInvoked();
       }
       }
-      else {
-        throw new Error('onChangeInvoked is null');
-      }
     }
     }
     catch (err) {
     catch (err) {
       toastError(err);
       toastError(err);

+ 0 - 3
packages/app/src/components/LikeButtons.jsx

@@ -48,9 +48,6 @@ class LikeButtons extends React.Component {
       if (onChangeInvoked !== null) {
       if (onChangeInvoked !== null) {
         await onChangeInvoked();
         await onChangeInvoked();
       }
       }
-      else {
-        return new Error('onChangeInvoked is null');
-      }
     }
     }
     catch (err) {
     catch (err) {
       toastError(err);
       toastError(err);