Skip to content

TypeError: Cannot read properties of undefined (reading 'length') #8297

@komagata

Description

@komagata

View details in Rollbar: https://app.rollbar.com/a/komagata/fix/item/Bootcamp/1776


TypeError: Cannot read properties of undefined (reading 'length')
  File "webpack:///./app/javascript/components/BookmarkButton.jsx", line 33, in BookmarkButton
        if (data.bookmarks.length > 0) {
  File "webpack:///./node_modules/react-dom/cjs/react-dom.production.min.js", line 3130, in io
      a = c(d, e);
  File "webpack:///./node_modules/react-dom/cjs/react-dom.production.min.js", line 3716, in Zo
      c = Ch(a, b, c, d, f, e);
  File "webpack:///./node_modules/react-dom/cjs/react-dom.production.min.js", line 5749, in Ys
          return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), li(a, b, d, ...
  File "webpack:///./node_modules/react-dom/cjs/react-dom.production.min.js", line 5262, in Nl
      var b = ck(a.alternate, a, qj);
  File "webpack:///./node_modules/react-dom/cjs/react-dom.production.min.js", line 5256, in Il
      for (; null !== Y;) bk(Y);
  File "webpack:///./node_modules/react-dom/cjs/react-dom.production.min.js", line 5242, in Sl
        ak();
  File "webpack:///./node_modules/react-dom/cjs/react-dom.production.min.js", line 5014, in vl
      } else b = Uc(a, 0), c = Tj(a, b);
  File "webpack:///./node_modules/react-dom/cjs/react-dom.production.min.js", line 2368, in [anonymous]
              do c = c(!0); while (null !== c);
  File "webpack:///./node_modules/scheduler/cjs/scheduler.production.min.js", line 235, in r.unstable_runWithPriority
        return b();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions