Table gets updated twice instead of once
I have a table and a dropdown (oj-select-one) objects. By the option the user clicks on in the dropdown, the table gets updated (te dropdown is used as a filter. Table shows only rows that match the dropdown's value).
Dropdown has a default option (default value), which the table should be updated by when entering the page -- Only rows that match the default value should be in the table.
I set an event that populates the dropdown with options and an event that once the user clicks on one of the dropdown's options the table is populated accordingly. The table's population is stored in an array that is being reset by both of these events.