Skip to content

Commit a30d96c

Browse files
committed
Remove CLI target from edit format selector condition
- hide edit format in 'edit' prompt type when target is 'CLI' ├── apps │ └── editor │ └── src │ └── views │ └── prompt │ └── frontend │ └── Main │ └── MainView │ └── MainView.tsx └── packages ├── shared │ └── src │ └── types │ └── target.ts └── ui └── src └── components └── editor └── common └── prompts └── PromptField └── PromptField.tsx
1 parent e976c40 commit a30d96c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • apps/editor/src/views/prompt/frontend/Main/MainView

‎apps/editor/src/views/prompt/frontend/Main/MainView/MainView.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ export const MainView: React.FC<Props> = (props) => {
180180

181181
const show_edit_format_selector =
182182
(props.target == 'WEB' && props.web_prompt_type == 'edit-files') ||
183-
(props.target == 'API' && props.api_prompt_type == 'edit-files') ||
184-
(props.target == 'CLI' && props.cli_prompt_type == 'edit-files')
183+
(props.target == 'API' && props.api_prompt_type == 'edit-files')
185184

186185
const is_context_empty =
187186
show_edit_format_selector && props.selected_files.length == 0

0 commit comments

Comments
 (0)