Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-16769

JS error while committing changes form web with "pull request" auto-creation

    XMLWordPrintable

Details

    Description

      First we got 404 on branch which should be created, then an exception occurred and web view freeze on "Creating pull request..." step.

      Console Error:

      #!javascript
      Uncaught TypeError: Cannot read property 'trim' of undefined
          at N.i.createPullRequest (commit-form.js?d0b2:405)
          at N.i.n [as createPullRequest] (index.js?66e6:3095)
          at N.i.<anonymous> (commit-form.js?d0b2:293)
          at Object.i.success (backbone.js?b8b2:486)
          at c (jquery.js?27d9:3099)
          at Object.fireWith [as resolveWith] (jquery.js?27d9:3211)
          at n (jquery.js?27d9:8264)
          at XMLHttpRequest.<anonymous> (jquery.js?27d9:8605)
          at XMLHttpRequest.n (raven.js?ae06*:377)
          at XMLHttpRequest.nrWrapper (VM948 PrivateApiUsers.cs:35)
      

      Line that causes error:
      const reviewers = this.$('#reviewers'.val().trim();

      Attachments

        1. xd.png
          xd.png
          270 kB

        Activity

          People

            Unassigned Unassigned
            2fdc4691242a Simek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: