Skip to content

Commit 402f760

Browse files
author
nicosammito
committed
feat: update submitValue handling in DFlowTabTrigger to use LiteralValue type
1 parent cc2dd57 commit 402f760

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/d-flow-file/DFlowTabTrigger.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {DFlowSuggestion} from "../d-flow-suggestion";
77
import {useValueSuggestions} from "../d-flow-suggestion/DFlowValueSuggestions.hook";
88
import {useDataTypeSuggestions} from "../d-flow-suggestion/DFlowDataTypeSuggestions.hook";
99
import {toInputSuggestions} from "../d-flow-suggestion/DFlowSuggestionMenu.util";
10-
import type {DataType, Flow, NodeParameterValue, Scalars} from "@code0-tech/sagittarius-graphql-types";
10+
import type {DataType, Flow, LiteralValue, NodeParameterValue, Scalars} from "@code0-tech/sagittarius-graphql-types";
1111
import {DFlowInputDataType} from "../d-flow-input/DFlowInputDataType";
1212
import {DFlowInputDefault} from "../d-flow-input/DFlowInputDefault";
1313

@@ -71,8 +71,10 @@ export const DFlowTabTrigger: React.FC<DFlowTabTriggerProps> = (props) => {
7171
}
7272
submitValue(value)
7373
} catch (e) {
74-
// @ts-ignore
75-
//submitValue(event.target.value)
74+
submitValue({
75+
value: event.target.innerText,
76+
__typename: "LiteralValue"
77+
} as LiteralValue)
7678
}
7779
}
7880

0 commit comments

Comments
 (0)