Skip to content

Commit

Permalink
Fixed sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tahierhussain committed Jan 30, 2025
1 parent b9be01e commit 5cd5ddc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/input-output/add-source/AddSource.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let transformLlmWhispererJsonSchema;
let LLMW_V2_ID;
let PLAN_TYPES;
let unstractSubscriptionPlanStore;
let useLlmWhipererAdapterSchema;
let llmWhipererAdapterSchema;
try {
transformLlmWhispererJsonSchema =
require("../../../plugins/unstract-subscription/helper/transformLlmWhispererJsonSchema").transformLlmWhispererJsonSchema;
Expand All @@ -23,8 +23,7 @@ try {
PLAN_TYPES =
require("../../../plugins/unstract-subscription/helper/constants").PLAN_TYPES;
unstractSubscriptionPlanStore = require("../../../plugins/store/unstract-subscription-plan-store");
useLlmWhipererAdapterSchema =
require("../../../plugins/unstract-subscription/hooks/useLlmWhispererAdapterSchema.js").useLlmWhipererAdapterSchema;
llmWhipererAdapterSchema = require("../../../plugins/unstract-subscription/hooks/useLlmWhispererAdapterSchema.js");
} catch (err) {
// Ignore if not available
}
Expand Down Expand Up @@ -55,7 +54,8 @@ function AddSource({
let transformLlmWhispererFormData;
try {
transformLlmWhispererFormData =
useLlmWhipererAdapterSchema()?.transformLlmWhispererFormData;
llmWhipererAdapterSchema?.useLlmWhipererAdapterSchema()
?.transformLlmWhispererFormData;
} catch {
// Ignore if not available
}
Expand Down

0 comments on commit 5cd5ddc

Please sign in to comment.