Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4455

Adding a field on the table view shows a blank ui

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.24.1
    • Affects Version/s: 1.22.1
    • Component/s: Table View
    • None
    • 3
    • Iteration Quince
    • Not Needed

      Currently when a user adds a field in the table view in compass-crud, we show a blank row. When the documents are then refreshed, the entire ui breaks. (Stack trace below)

      Gif:

      Stack trace:

      /Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:661 TypeError: Cannot read property 'classList' of null
          at Function.e.removeCssClass (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:13)
          at Function.e.addOrRemoveCssClass (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:13)
          at t.setInlineEditingClass (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:249)
          at t.stopEditing (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:249)
          at /Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:392
          at /Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:392
          at Function.e.iterateObject (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:13)
          at t.forEachCellComp (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:392)
          at t.stopEditing (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:392)
          at /Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:111
      object.<computed> @ /Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:661
      /Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:661 
      DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
          at t.detach (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:249:27272)
          at /Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:392:12534
          at Array.forEach (<anonymous>)
          at t.removeRenderedCells (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:392:12473)
          at t.onGridColumnsChanged (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:392:9035)
          at /Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:25:2405
          at Array.forEach (<anonymous>)
          at Function.e.forEachSnapshotFirst (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:13:15589)
          at e.dispatchToListeners (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:25:2324)
          at e.dispatchEvent (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-crud/lib/index.js:25:1889)
      

       

       

            Assignee:
            michael.rose@mongodb.com Michael Rose (Inactive)
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: