File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,10 @@ function QuestionAnswering({ application, showSettings }) {
274
274
275
275
{ showSettings ? (
276
276
< div className = "application__settings" >
277
- < Retrievers disableParent = { setDisabled } > </ Retrievers >
277
+ < Retrievers
278
+ disableParent = { setDisabled }
279
+ defaultCheckpoint = { selectedCollection ?. checkpoint }
280
+ > </ Retrievers >
278
281
< Collections
279
282
retriever = { retrievers . selectedRetriever }
280
283
selectedCollection = { selectedCollection }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ import { addNotification } from "../notifications/notificationsSlice";
41
41
42
42
import "./styles.scss" ;
43
43
44
- function Retrievers ( { disableParent } ) {
44
+ function Retrievers ( { disableParent, defaultCheckpoint } ) {
45
45
// Redux connectivity
46
46
const retrievers = useSelector ( ( state ) => state . retrievers ) ;
47
47
const dispatch = useDispatch ( ) ;
@@ -313,7 +313,7 @@ function Retrievers({ disableParent }) {
313
313
< Select
314
314
id = { "parameter-" + parameter . parameter_id }
315
315
labelText = { parameter . name }
316
- value = { parameter . value || "placeholder-item" }
316
+ value = { parameter . value || defaultCheckpoint || "placeholder-item" }
317
317
onChange = { ( event ) => {
318
318
dispatch (
319
319
updateParameterValue ( {
@@ -374,6 +374,7 @@ function Retrievers({ disableParent }) {
374
374
375
375
Retrievers . propTypes = {
376
376
disableParent : PropTypes . func ,
377
+ defaultCheckpoint : PropTypes . string ,
377
378
} ;
378
379
379
380
export default Retrievers ;
You can’t perform that action at this time.
0 commit comments