Skip to content

Commit

Permalink
[REF] web: fix a typo in search arch parser
Browse files Browse the repository at this point in the history
closes odoo#184440

Signed-off-by: Julien Mougenot (jum) <[email protected]>
  • Loading branch information
Polymorphe57 committed Oct 21, 2024
1 parent 076d21a commit cd39af9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/web/static/src/search/search_arch_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const DEFAULT_VIEWS_WITH_SEARCH_PANEL = ["kanban", "list"];
* @param {string} context
* @returns {string[]}
*/
function getContextGroubBy(context) {
function getContextGroupBy(context) {
try {
return makeContext([context]).group_by?.split(":") || [];
} catch {
Expand Down Expand Up @@ -192,7 +192,7 @@ export class SearchArchParser {
const preSearchItem = { type: "filter" };
if (node.hasAttribute("context")) {
const context = node.getAttribute("context");
const [fieldName, defaultInterval] = getContextGroubBy(context);
const [fieldName, defaultInterval] = getContextGroupBy(context);
const groupByField = this.fields[fieldName];
if (groupByField) {
preSearchItem.type = "groupBy";
Expand Down

0 comments on commit cd39af9

Please sign in to comment.