Skip to content

Commit

Permalink
telco type update
Browse files Browse the repository at this point in the history
  • Loading branch information
MVarshini committed Aug 27, 2024
1 parent db3aa8f commit 307e8ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions frontend/src/actions/quayActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
getFilteredData,
getSelectedFilter,
} from "./commonActions";
import { cloneDeep, result } from "lodash";

import API from "@/utils/axiosInstance";
import { cloneDeep } from "lodash";
import { showFailureToast } from "@/actions/toastActions";

export const fetchQuayJobsData = () => async (dispatch, getState) => {
Expand All @@ -25,10 +25,10 @@ export const fetchQuayJobsData = () => async (dispatch, getState) => {
const response = await API.get(API_ROUTES.QUAY_JOBS_API_V1, {
params: {
pretty: true,
start_date: "2022-08-16",
end_date: "2024-08-16",
// ...(start_date && { start_date }),
// ...(end_date && { end_date }),
// start_date: "2022-08-16",
// end_date: "2024-08-16",
...(start_date && { start_date }),
...(end_date && { end_date }),
},
});
if (response?.data?.results?.length > 0) {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/actions/telcoActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const applyFilters = () => (dispatch, getState) => {
: results;

dispatch({
type: TYPES.SET_FILTERED_DATA,
type: TYPES.SET_TELCO_FILTERED_DATA,
payload: filtered,
});
dispatch(tableReCalcValues());
Expand Down Expand Up @@ -173,7 +173,7 @@ export const setSelectedFilter =
)
);
dispatch({
type: TYPES.TELCO_SET_SELECTED_FILTERS,
type: TYPES.SET_TELCO_SELECTED_FILTERS,
payload: selectedFilters,
});
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/actions/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const SET_TELCO_SORT_INDEX = "SET_TELCO_SORT_INDEX";
export const SET_TELCO_SORT_DIR = "SET_TELCO_SORT_DIR";
export const SET_TELCO_PAGE = "SET_TELCO_PAGE";
export const SET_TELCO_PAGE_OPTIONS = "SET_TELCO_PAGE_OPTIONS";
export const SET_TELCO_INIT_JOBS = "SET_OCP_INIT_JOBS";
export const SET_TELCO_INIT_JOBS = "SET_TELCO_INIT_JOBS";
export const SET_TELCO_FILTERED_DATA = "SET_TELCO_FILTERED_DATA";
export const SET_TELCO_CATEGORY_FILTER = "SET_TELCO_CATEGORY_FILTER";
export const SET_TELCO_FILTER_OPTIONS = "SET_TELCO_FILTER_OPTIONS";
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/molecules/MultiSelectBox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const MultiSelectBox = (props) => {
setIsDirty(false);
};
const toggle = (toggleRef) => {
console.log(props.selected);
return (
<MenuToggle
variant="typeahead"
Expand Down

0 comments on commit 307e8ec

Please sign in to comment.