dash-table
dash-table copied to clipboard
o.weights[e] is undefined
Summary
When combining
- empty data and columns
- filter_action = 'native'
- row_selectable = 'single' or 'multi'
an error is raised that says o.weights[e] is undefined.
Maybe the error also occurs in other situations. (?)
Code Example
import dash
import dash_table
app = dash.Dash()
app.layout = dash_table.DataTable(
columns = [],
data = [],
filter_action = 'native',
row_selectable = 'single', # error occurs also with 'multi'
)
app.run_server(debug=True)
Stack Trace
e/this.getWeight@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:194522
value/<@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:211954
6883/o<@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:414569
o/<@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:414899
t@http://127.0.0.1:8050/_dash-component-suites/dash_table/bundle.v4_11_3m1618087722.js:1:21274
value@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:211914
e/this.memoizedCreateEdges<@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:210655
o/<@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:632
value@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:212795
s/t.tableFn</<@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:282954
value@http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.js:2:293646
finishClassComponent@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:17295:33
updateClassComponent@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:17245:46
beginWork@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:18755:18
callCallback@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:182:16
invokeGuardedCallbackDev@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:231:18
invokeGuardedCallback@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:286:33
beginWork$1@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:23338:30
performUnitOfWork@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:22289:14
workLoopSync@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:22265:24
performSyncWorkOnRoot@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:21891:11
flushSyncCallbackQueueImpl/<@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:11224:26
unstable_runWithPriority@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:2685:14
runWithPriority$1@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:11174:12
flushSyncCallbackQueueImpl@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:11219:26
flushSyncCallbackQueue@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:11207:5
flushPassiveEffectsImpl@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:23018:5
unstable_runWithPriority@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:2685:14
runWithPriority$1@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:11174:12
flushPassiveEffects@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:22955:14
commitBeforeMutationEffects/<@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:22834:13
workLoop@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:2629:44
flushWork@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:2584:18
performWorkUntilDeadline@http://127.0.0.1:8050/_dash-component-suites/dash_renderer/[email protected]_9_1m1618087721.14.0.js:2196:50
Hi,
I would like to use both the native filtering and the row selection features, but found this error myself. Does anyone know what might be going wrong here?
python version: 3.10.2 dash version: 2.1.0
I'm seeing this with the Dash Table too. Python 3.8, dash 2.3.1. I am guessing it has something to do with selected rows that aren't updated at the same time as the query results. It would be nice if the component were smart enough to drop those selections when they no longer make sense, instead of the developer having to keep them in sync manually.