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

Error when loading inline data twice on the same schedule #3384

Closed
matsbryntse opened this issue Sep 8, 2021 · 3 comments
Closed

Error when loading inline data twice on the same schedule #3384

matsbryntse opened this issue Sep 8, 2021 · 3 comments
Assignees
Labels
bug Something isn't working forum Issues from forum high-priority Urgent to have fixed resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@matsbryntse
Copy link
Member

Forum post

Error if using loading inline data twice.

TypeError: resourceRecord.assigned is undefined

Below is an example:

import { SchedulerPro, ProjectModel } from '../../build/gantt.module.js?453079';
import shared from '../_shared/shared.module.js?453079';
/* eslint-disable no-unused-vars */

const project = new ProjectModel({
});

let resources = [{'id': 1, 'name': 'resource 1'}];
const assignments = [];
const events = [];


new SchedulerPro({
    appendTo : 'container',

project,
rowHeight: 80,
columns: [
{
    type: 'resourceInfo',
    field: 'name',
    text: 'Resource',
    showEventCount: false,
    editor: false,
    width: 330
}]

});

await project.loadInlineData({
eventsData: events,
resourcesData: resources,
assignmentsData: assignments
});

resources = [{'id': 4, 'name': 'resource 2'}];

await project.loadInlineData({
eventsData: events,
resourcesData: resources,
assignmentsData: assignments
});


@matsbryntse matsbryntse added bug Something isn't working forum Issues from forum labels Sep 8, 2021
@matsbryntse matsbryntse added this to the 4.2.6 milestone Sep 8, 2021
@matsbryntse
Copy link
Member Author

Initial progress in 3384-repopulate

@matsbryntse matsbryntse added the high-priority Urgent to have fixed label Sep 9, 2021
@canonic-epicure
Copy link

Might be already fixed in the Arcady's conflicts branch.

@arcady-zherdev
Copy link

Nope it's reproducible in the scheduling conflicts branch as well.

@arcady-zherdev arcady-zherdev self-assigned this Sep 9, 2021
@arcady-zherdev arcady-zherdev added in progress resolved Fixed but not yet released (available in the nightly builds) and removed in progress labels Sep 9, 2021
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 high-priority Urgent to have fixed resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

3 participants