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 still shows in the console when using load().catch(callback) #4901

Open
taauntik opened this issue Jul 7, 2022 · 1 comment
Open
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer premium

Comments

@taauntik
Copy link

taauntik commented Jul 7, 2022

Forum post

When catching the fetch error with .catch() it still shows the error in the console.
Screenshot 2022-07-07 155433

Steps to reproduce:

  1. Go to basic example https://www.bryntum.com/examples/gantt/basic/
  2. Open the code editor
  3. Then paste the whole code
import { Gantt, StringHelper } from '../../build/gantt.module.js?459924';
import shared from '../_shared/shared.module.js?459924';

const gantt = new Gantt({
    appendTo          : 'container',
    dependencyIdField : 'sequenceNumber',

    project : {
        autoLoad  : true,
        transport : {
            load : {
                url : 'https://something.com'
            }
        }
    },

    columns : [
        { type : 'name', width : 250 }
    ],

    // Custom task content, display task name on child tasks
    taskRenderer({ taskRecord }) {
        if (taskRecord.isLeaf && !taskRecord.isMilestone) {
            return StringHelper.encodeHtml(taskRecord.name);
        }
    }
});

gantt.project.load().catch(err => console.log(err));
  1. Check the console.
@taauntik taauntik added bug Something isn't working premium forum Issues from forum large-account Reported by large customer labels Jul 7, 2022
@bmblb
Copy link

bmblb commented Jul 7, 2022

Should be fixed by #4872

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 large-account Reported by large customer premium
Projects
None yet
Development

No branches or pull requests

2 participants