Coder Social home page Coder Social logo

Comments (8)

gabriel4649 avatar gabriel4649 commented on May 26, 2024

I'm having this issue too.

from angular-deckgrid.

gabriel4649 avatar gabriel4649 commented on May 26, 2024

Any pointers as to how to fix this? I might have the time to send a PR.

from angular-deckgrid.

nicoabie avatar nicoabie commented on May 26, 2024

@climatewarrior an easy way to fix it would be this.

if ((oldModel? oldModel.length : 0) !== newModel.length) {
self.$$createColumns();
}

OR

if ((oldModel || []).length !== newModel.length) {
self.$$createColumns();
}

I don't know if there is something more angular way to do it. I am assuming that when the model changes, it will change to a valid array

from angular-deckgrid.

gabriel4649 avatar gabriel4649 commented on May 26, 2024

@nicoabie Thanks!! Now it works :) Although I'm still getting the following error: Error: newModel is undefined but the functionality is not affected.

from angular-deckgrid.

nicoabie avatar nicoabie commented on May 26, 2024

@climatewarrior you are welcome, can you provide an example in jsfiddle or similar to analyze it further?

from angular-deckgrid.

akoenig avatar akoenig commented on May 26, 2024

Okay, implemented a fallback mechanism here. Can anybody doublecheck if the problem still persists?

from angular-deckgrid.

gabriel4649 avatar gabriel4649 commented on May 26, 2024

@akoenig It's working just fine for me, thanks!!

from angular-deckgrid.

akoenig avatar akoenig commented on May 26, 2024

Okay, cool. Thanks for the check :) Release v0.4.1 is live.

from angular-deckgrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.