diff --git a/awx/ui_next/src/screens/Template/shared/surveyReducer.js b/awx/ui_next/src/screens/Template/shared/surveyReducer.js deleted file mode 100644 index 418792a1e4..0000000000 --- a/awx/ui_next/src/screens/Template/shared/surveyReducer.js +++ /dev/null @@ -1,15 +0,0 @@ -export default function surveyReducer(state, action) { - switch (action.type) { - case 'THING': - return state; - default: - throw new Error(`Unrecognized action type: ${action.type}`); - } -} - -// move up/down -> Update -// delete -> Update -// delete all -> destroySurvey -// toggle -> Update survey_enabled -// select -// select all diff --git a/awx/ui_next/src/util/useRequest.js b/awx/ui_next/src/util/useRequest.js index 6c06cc0a34..a5a3e8556d 100644 --- a/awx/ui_next/src/util/useRequest.js +++ b/awx/ui_next/src/util/useRequest.js @@ -14,7 +14,6 @@ import { * isLoading: boolean state indicating whether the request is in active/in flight * error: any caught error resulting from the request * setValue: setter to explicitly set the result value - * isInitialized: set to true once the result is initially fetched * * The hook also accepts an optional second parameter which is a default * value to set as result before the first time the request is made.