force cds view indices to be recomputed on table updates
@@ -97,6 +97,12 @@ export class DataTableView extends WidgetView
@connect(@model.source.change, () => @updateSelection())
updateGrid: () ->
+ # TODO (bev) This is to enure that CDSView indices are properly computed
+ # before passing to the DataProvider. This will result in extra calls to
+ # compute_indices. This "over execution" will be addressed in a more
+ # general look at events
+ @model.view.compute_indices()
+
@data.constructor(@model.source, @model.view)
@grid.invalidate()
@grid.render()
