Skip to content

Commit

Permalink
Refactor recursiveAddId function to use default parameter syntax for …
Browse files Browse the repository at this point in the history
…_parentId
  • Loading branch information
Royal-lobster committed Nov 19, 2023
1 parent 01e4e48 commit 12c4943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/prompts/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const prompts: PromptWithoutId[] = [

const recursiveAddId = (
prompts: PromptWithoutId[],
_parentId: string = '',
_parentId = '',
): Prompt[] => {
return prompts.map((prompt) => {
const id = hash(prompt)
Expand Down

0 comments on commit 12c4943

Please sign in to comment.