Skip to content

Commit

Permalink
Merge pull request #3169 from glific/feature/wa_groups_node
Browse files Browse the repository at this point in the history
Added support for updating whatsapp group node
  • Loading branch information
kurund authored Dec 15, 2024
2 parents c202539 + 037f458 commit 69ee39f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@emoji-mart/react": "^1.1.1",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@glific/flow-editor": "^1.26.3-17",
"@glific/flow-editor": "^1.26.3-18",
"@lexical/react": "^0.17.1",
"@mui/icons-material": "^6.1.1",
"@mui/material": "^6.1.1",
Expand Down
6 changes: 5 additions & 1 deletion src/components/floweditor/FlowEditor.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export const setConfig = (uuid: any, isTemplate: boolean) => {
simulateResume: false,
globals: `${glificBase}globals`,
groups: `${glificBase}groups`,
fields: `${glificBase}fields`,
fields: `${glificBase}fields?scope=contact`,
waGroupFields: `${glificBase}fields?scope=wa_group`,
labels: `${glificBase}labels`,
channels: `${glificBase}channels`,
classifiers: `${glificBase}classifiers`,
Expand Down Expand Up @@ -98,6 +99,9 @@ export const setConfig = (uuid: any, isTemplate: boolean) => {
config.filters.push('ticketer');
}

if (services.whatsappGroupEnabled) {
config.filters.push('groups');

Check warning on line 103 in src/components/floweditor/FlowEditor.helper.ts

View check run for this annotation

Codecov / codecov/patch

src/components/floweditor/FlowEditor.helper.ts#L103

Added line #L103 was not covered by tests
}
return config;
};

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,10 @@
resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz#81fd50d11e2c32b2d6241470e3185b70c7b30699"
integrity sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==

"@glific/flow-editor@^1.26.3-17":
version "1.26.3-17"
resolved "https://registry.yarnpkg.com/@glific/flow-editor/-/flow-editor-1.26.3-17.tgz#4b38c37f908345dc77459e3cce09aca7182d43d0"
integrity sha512-438aIjOHmr2eE1icABebtKCh+g5Dd3FGlcs26PgtElu4mZVlJp+8T7wsU3N/B5Vvx5nkbL6RAMk7jxtVL9yCNQ==
"@glific/flow-editor@^1.26.3-18":
version "1.26.3-18"
resolved "https://registry.yarnpkg.com/@glific/flow-editor/-/flow-editor-1.26.3-18.tgz#b00eb188bf1070903ae7d50a785d8ace76d97f35"
integrity sha512-DtC6LSkUqJg9Y1DlBvy9lVndd6raxTO9rSciec0X5wgVNxBnf7BoCJTA5wy3JkpY4jD3Xb9yPFUkz+1R/vFHcA==
dependencies:
react "^16.8.6"
react-dom "^16.8.6"
Expand Down

0 comments on commit 69ee39f

Please sign in to comment.