Skip to content

Commit

Permalink
fix(text): Fix schema for the input to allow strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Jul 5, 2023
1 parent e892060 commit 32a5c4d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/nodes/text/TextController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export default class TextController extends InputOutputController<
}

public async onValueChange(value: string, previousValue?: string) {
console.log('onValueChange', value, previousValue);
if (typeof value !== 'string') return;

const message: NodeMessage = {};
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/text/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const TextEditor: EditorNodeDef<TextEditorNodeProperties> = {
TypedInputTypes.Flow,
TypedInputTypes.Global,
TypedInputTypes.JSONata,
TypedInputTypes.Number,
TypedInputTypes.String,
],
typeField: '#node-input-valueType',
// @ts-expect-error - DefinitelyTyped is wrong typedInput can take a object as a parameter
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const inputSchema: Joi.ObjectSchema = Joi.object({
TypedInputTypes.Flow,
TypedInputTypes.Global,
TypedInputTypes.JSONata,
TypedInputTypes.Number
TypedInputTypes.String
)
.required(),
});
Expand Down

0 comments on commit 32a5c4d

Please sign in to comment.