Skip to content

Editing drafts doesn't work from drafts page

on develop

  1. Type something into a reply box
  2. Save it as draft
  3. Go to drafts page
  4. Click on "Continue composing"
  5. The whole page crashes with the following error
Uncaught (in promise) TypeError: attention is undefined
    mentions webpack-internal:///./node_modules/babel-loader/lib/index.js!./src/components/post_status_form/post_status_form.js?vue&type=script&lang=js:81
    Lodash 2
    buildMentionsString webpack-internal:///./node_modules/babel-loader/lib/index.js!./src/components/post_status_form/post_status_form.js?vue&type=script&lang=js:80
    data webpack-internal:///./node_modules/babel-loader/lib/index.js!./src/components/post_status_form/post_status_form.js?vue&type=script&lang=js:150
    applyOptions webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:3540
    finishComponentSetup webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:7481
    setupStatefulComponent webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:7392
    setupComponent webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:7314
    mountComponent webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5639
    processComponent webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5614
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5216
    mountChildren webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5400
    mountElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5310
    processElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5293
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5213
    patchBlockChildren webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5521
    patchElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5429
    processElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5296
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5213
    componentUpdateFn webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5826
    run webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:225
    update webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5860
    callWithErrorHandling webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:286
    flushJobs webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:516
    promise callback*queueFlush webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:408
    queueJob webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:402
    scheduler webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:1953
    triggerEffect webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:431
    triggerEffects webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:421
    trigger webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:393
    set webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:560
    set webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:3328
    toggleEditing webpack-internal:///./node_modules/babel-loader/lib/index.js!./src/components/draft/draft.js?vue&type=script&lang=js:100
    render/_cache[2]< webpack-internal:///./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/components/draft/draft.vue?vue&type=template&id=eaf29f5a:126
    withModifiers webpack-internal:///./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:1633
    callWithErrorHandling webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:286
    callWithAsyncErrorHandling webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:295
    invoker webpack-internal:///./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:495
    addEventListener webpack-internal:///./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:429
    patchEvent webpack-internal:///./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:447
    patchProp webpack-internal:///./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:526
    mountElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5319
    processElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5293
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5213
    mountChildren webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5400
    mountElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5310
    processElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5293
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5213
    mountChildren webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5400
    mountElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5310
    processElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5293
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5213
    componentUpdateFn webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5753
    run webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:225
    update webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5860
    setupRenderEffect webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5874
    mountComponent webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5656
    processComponent webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5614
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5216
    mountChildren webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5400
    processFragment webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5573
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5209
    mountChildren webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5400
    mountElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5310
    processElement webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5293
    patch webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5213
    mountChildren webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5400
    processFragment webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:5573
post_status_form.js:56:15