Web: avoid error resizing the tasks table
The tasks table resize function is called via `this.$nextTick()`, which means that the component can actually already be unmounted by the time the actual function call is performed. This is now detected & handled.
This commit is contained in:
parent
885911a06e
commit
cd35e3a5cb
@ -200,6 +200,13 @@ export default {
|
||||
const table = this.tabulator.element;
|
||||
const tableContainer = table.parentElement;
|
||||
const outerContainer = tableContainer.parentElement;
|
||||
if (!outerContainer) {
|
||||
// This can happen when the component was removed before the function is
|
||||
// called. This is possible due to the use of Vue's `nextTick()`
|
||||
// function.
|
||||
return;
|
||||
}
|
||||
|
||||
const availableHeight = outerContainer.clientHeight - 12; // TODO: figure out where the -12 comes from.
|
||||
|
||||
if (tableContainer.offsetParent != tableContainer.parentElement) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user