AnotherCodeArtist / medien-transparenz.at

Apache License 2.0
3 stars 2 forks source link

Flow: Cannot reinitialise DataTable #73

Closed relative-progressio closed 8 years ago

relative-progressio commented 8 years ago

The new flow page (#44) showed the following error (two times) after clicking on one node to view the details.

As part of the merge (#72) I found out that after the click on one node three requests were sent:

  1. Since the showDetails function edited the scope variable selectedOrganisations, the watcher fired and called the update() method.
  2. Since the showDetails function edited the scope variable selectedMedia, the watcher for the variable fired and called the update() method.
  3. After editing selectedOrganisations and selectedMedia update()was called.

The fact that the error showed up two times, brought me to the assumption that the two requests are somehow interfering the DataTable.

So, I implemented a workaround to avoid three requests, with one request the error was gone.