Move misplaced log abt initializing query text to appropriate place

This commit is contained in:
John Colvin committed 2024-11-29 14:57:44 +00:00
1 parent 659e387841
commit 2241da9f9e
1 file changed
+1 -1
@@ -23,10 +23,10 @@ const QueryControl = (props) => {
// Init text field (unless a non-empty string is already present, or the user has modified
// the query - we don't want to overwrite their changes).
if (queryTextChangeTime == null || queryTextResetTime > queryTextChangeTime) {
console.info(`Initializing query text: ${queryText}`)
textInput.current.value = queryText;
}
}, [queryText, queryTextChangeTime, queryTextResetTime]);
console.info(`Initializing query input form with text: ${queryText}`)
const onClearClick = () => {
textInput.current.value = '';
};