Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VUE 2] RowExpander crash when filtering paged AjaxStore with syncDataOnLoad #7394

Closed
JockeLindberg opened this issue Aug 29, 2023 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@JockeLindberg
Copy link

Forum post

We're on 5.5.0

Using an AjaxStore's readUrl, the grid loads just fine initially. When filtering, the resulting reload of data causes this error stack trace:

TypeError: Cannot read properties of undefined (reading 'type')
    at RowExpander.onStoreChange (https://local.BLAH.io/js/vue-app.js:85286:113)
    at AjaxStore.trigger (https://local.BLAH.io/js/vue-app.js:5819:34)
    at AjaxStore.onModelChange (https://local.BLAH.io/js/vue-app.js:28850:10)
    at ModelClass.afterChange (https://local.BLAH.io/js/vue-app.js:20295:13)
    at ModelClass.inSet (https://local.BLAH.io/js/vue-app.js:20259:10)
    at ModelClass.set (https://local.BLAH.io/js/vue-app.js:20128:25)
    at https://local.BLAH.io/js/vue-app.js:27830:35
    at Array.forEach (<anonymous>)
    at AjaxStore.syncFlatDataset (https://local.BLAH.io/js/vue-app.js:27816:10)
    at AjaxStore.syncDataset (https://local.BLAH.io/js/vue-app.js:27719:107)

Here is the chunk of code for RowExpander.onStoreChange, it's the source.modelClass.fieldMap[changedKeys[0]].type that is throwing the error

onStoreChange({ action, source, records, changes }) {
    var _a2;
    const me = this, { recordStateMap, collapsingStateMap } = me, changedKeys = changes && Object.keys(changes);
    if ((changedKeys == null ? void 0 : changedKeys.length) === 1 && source.modelClass.fieldMap[changedKeys[0]].type === "store") {
      return;
    }

It displays the error on screen, too, which makes it impossible to simply ignore and move on. The new data is displayed just fine in the grid.
Screenshot 2023-08-15 at 9.58.53 PM.png

What else do you need from me to troubleshoot/reproduce?
Screenshot 2023-08-15 at 9.58.53 PM.png

@JockeLindberg JockeLindberg added bug Something isn't working forum Issues from forum OEM OEM customer labels Aug 29, 2023
@JockeLindberg JockeLindberg self-assigned this Aug 29, 2023
@JockeLindberg JockeLindberg changed the title [VUE 2] RowExpander crash when AjaxStore is filtered [VUE 2] RowExpander crash when filtering paged AjaxStore with syncDataOnLoad Aug 29, 2023
@JockeLindberg JockeLindberg added in progress ready for review Issue is fixed, the pull request is being reviewed and removed in progress labels Aug 29, 2023
@isglass isglass added resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Sep 1, 2023
@isglass isglass added this to the 5.5.3 milestone Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

2 participants