delete console logs
This commit is contained in:
parent
e15e8ce949
commit
c745378efb
4 changed files with 0 additions and 18 deletions
|
|
@ -165,7 +165,6 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
|
|||
useEffect(() => {
|
||||
ideMessenger.request("config/listProfiles", undefined).then((result) => {
|
||||
if (result.status === "success") {
|
||||
console.log("PROFILES: ", result.content);
|
||||
dispatch(
|
||||
updateProfilesThunk({
|
||||
profiles: result.content,
|
||||
|
|
@ -179,7 +178,6 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
|
|||
useWebviewListener(
|
||||
"didChangeAvailableProfiles",
|
||||
async (data) => {
|
||||
console.log("AVAILABLE: ", data.profiles, data.selectedProfileId);
|
||||
dispatch(
|
||||
updateProfilesThunk({
|
||||
profiles: data.profiles,
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ function useSetup() {
|
|||
}
|
||||
hasLoadedConfig.current = true;
|
||||
dispatch(setConfigResult(configResult));
|
||||
console.log("selecting 1", profileId);
|
||||
dispatch(selectProfileThunk(profileId));
|
||||
|
||||
// Perform any actions needed with the config
|
||||
|
|
@ -95,7 +94,6 @@ function useSetup() {
|
|||
useWebviewListener(
|
||||
"configUpdate",
|
||||
async (update) => {
|
||||
console.log("CONFIG UPDATE: ", update);
|
||||
if (!update) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ function ConfigPage() {
|
|||
} = useAuth();
|
||||
|
||||
const changeProfileId = (id: string) => {
|
||||
console.log("selecting 2", id);
|
||||
dispatch(selectProfileThunk(id));
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -25,12 +25,6 @@ export const selectProfileThunk = createAsyncThunk<
|
|||
|
||||
let newId = id;
|
||||
|
||||
console.log(
|
||||
"Running Thunk: ",
|
||||
initialId,
|
||||
newId,
|
||||
state.session.availableProfiles,
|
||||
);
|
||||
// If no profiles, force clear
|
||||
if (state.session.availableProfiles.length === 0) {
|
||||
newId = null;
|
||||
|
|
@ -49,12 +43,6 @@ export const selectProfileThunk = createAsyncThunk<
|
|||
}
|
||||
|
||||
// Only update if there's a change
|
||||
console.log(
|
||||
"update selected profile?",
|
||||
newId,
|
||||
initialId,
|
||||
state.session.availableProfiles,
|
||||
);
|
||||
if ((newId ?? null) !== (initialId ?? null)) {
|
||||
dispatch(
|
||||
setSelectedProfile(
|
||||
|
|
@ -103,7 +91,6 @@ export const updateProfilesThunk = createAsyncThunk<
|
|||
dispatch(setAvailableProfiles(profiles));
|
||||
|
||||
// This will trigger reselection if needed
|
||||
console.log("selecting 3", selectedProfileId);
|
||||
dispatch(selectProfileThunk(selectedProfileId));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue