Skip to content

Commit 109af96

Browse files
committed
refactor(plugin-flow-builder): remove unused code, add a comment and reaname a function
1 parent 139bd76 commit 109af96

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/botonic-plugin-flow-builder/src/action/first-interaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async function getContentsByUserInput({
6464
resolvedLocale,
6565
})
6666

67-
const hasRepeatedContent = await checkRepetedContents(
67+
const hasRepeatedContent = await checkRepeatedContents(
6868
flowBuilderPlugin,
6969
resolvedLocale,
7070
contentsByKeywordsOrIntents
@@ -94,7 +94,7 @@ function getConversationStartId(cmsApi: FlowBuilderApi) {
9494
return conversationStartId
9595
}
9696

97-
async function checkRepetedContents(
97+
async function checkRepeatedContents(
9898
flowBuilderPlugin: BotonicPluginFlowBuilder,
9999
resolvedLocale: string,
100100
contentsByKeywordsOrIntents: FlowContent[]

packages/botonic-plugin-flow-builder/src/content-fields/hubtype-fields/intent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { HtBaseNode, HtInputLocale, HtTextLocale } from './common'
22
import { HtNodeWithContentType } from './node-types'
33

4+
// TODO: Remove this because frontend no allow create intents babel
45
export interface HtIntentNode extends HtBaseNode {
56
type: HtNodeWithContentType.INTENT
67
content: {

packages/botonic-plugin-flow-builder/src/tracking.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { FlowContent } from './content-fields'
55
import {
66
HtNodeWithContent,
77
HtNodeWithContentType,
8-
HtNodeWithoutContentType,
98
} from './content-fields/hubtype-fields'
109
import { getFlowBuilderPlugin } from './helpers'
1110

0 commit comments

Comments
 (0)