fix(charts): Time grain is None when dataset uses Jinja (#25842)

This commit is contained in:
Antonio Rivero
2023-11-06 18:51:28 +01:00
committed by GitHub
parent 30cd422331
commit 7536dd12cd
6 changed files with 23 additions and 14 deletions

View File

@@ -16,8 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
import omit from 'lodash/omit';
import {
AdhocColumn,
buildQueryContext,
@@ -72,9 +70,7 @@ export default function buildQuery(formData: PivotTableQueryFormData) {
}
return [
{
...(hasGenericChartAxes
? omit(baseQueryObject, ['extras.time_grain_sqla'])
: baseQueryObject),
...baseQueryObject,
orderby: orderBy,
columns,
},