Skip to content

Commit

Permalink
modify js file
Browse files Browse the repository at this point in the history
  • Loading branch information
akageun committed Nov 13, 2024
1 parent 6d4baa2 commit 728f735
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ const QueryEditor = ({queryOptions, setQueryOptions, queryExecute}) => {
<option value="10">10</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="500">500</option>
</select>
<label htmlFor="queryLimitSelect">Limit</label>
</div>
Expand Down Expand Up @@ -200,7 +201,7 @@ const QueryEditor = ({queryOptions, setQueryOptions, queryExecute}) => {
<div className="form-floating mb-3">
<input type="number" className="form-control form-control-sm" id="queryTimeoutSec"
placeholder="Query Timeout Sec"
value={queryOptions.timeoutSeconds || 3}
value={queryOptions.timeoutSeconds || 0}
onChange={
e => {
setQueryOptions(t => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ const CassdioDefaultLayout = ({}) => {

useEffect(() => {

dispatch({
type: "SET_BOOTSTRAP",
consistencyLevels: bootstrap.consistencyLevels,
defaultConsistencyLevel: bootstrap.defaultConsistencyLevel,
});
if (bootstrap) {
dispatch({
type: "SET_BOOTSTRAP",
consistencyLevels: bootstrap.consistencyLevels,
defaultConsistencyLevel: bootstrap.defaultConsistencyLevel,
});
}

return () => {
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Link, useParams} from "react-router-dom";
import {useParams} from "react-router-dom";
import React, {useEffect, useState} from "react";
import {toast} from "react-toastify";
import QueryEditor from "components/cluster/query-editor";
Expand Down

0 comments on commit 728f735

Please sign in to comment.