Skip to content
Snippets Groups Projects
Unverified Commit 5ab5e519 authored by Alex Yang's avatar Alex Yang Committed by GitHub
Browse files

fix: empty prefix with inputs (#899)

parent 54230f04
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ export interface InferenceStatus { ...@@ -27,7 +27,7 @@ export interface InferenceStatus {
} }
const mapPrefixWithInputs = (prefix: string, inputs: string[]): string[] => { const mapPrefixWithInputs = (prefix: string, inputs: string[]): string[] => {
return inputs.map((input) => `${prefix} ${input}`); return inputs.map((input) => (prefix ? `${prefix} ${input}` : input));
}; };
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment