Commit 30fcc3ca authored by catch's avatar catch
Browse files

Issue #2370115 by Upchuk, nafsinvk, jibran: Clicking 'Add to shortcuts' adds...

Issue #2370115 by Upchuk, nafsinvk, jibran: Clicking 'Add to shortcuts' adds shortcut multiple times

(cherry picked from commit edfd5bbe)
parent bd32e2e3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -19,6 +19,16 @@ class ShortcutForm extends ContentEntityForm {
   */
  protected $entity;

  /**
   * {@inheritdoc}
   */
  public function form(array $form, FormStateInterface $form_state) {
    $form = parent::form($form, $form_state);
    $form['#attached']['library'][] = 'core/drupal.form';

    return $form;
  }

  /**
   * {@inheritdoc}
   */