Skip to content

Commit e9ce28b

Browse files
authored
Merge pull request #233 from boostcampwm-2024/feature-historyState-fix
[feature-historyState-fix] ai 요청시 history가 초기화되게 설정
2 parents 8c311ae + 733ca4c commit e9ce28b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client/src/store/NodeListProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export default function NodeListProvider({ children }: { children: ReactNode })
9797
payload: initializedNodes,
9898
callback: (response) => {
9999
overrideNodeData(response);
100+
overrideHistory(JSON.stringify(response));
100101
},
101102
});
102103
});

client/src/store/createSocketSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const createSocketSlice: StateCreator<ConnectionStore, [], [], SocketSlic
106106
get().connectSocket(connectionId);
107107
return connectionId;
108108
} catch (error) {
109-
console.error(error);
109+
throw error;
110110
}
111111
},
112112

0 commit comments

Comments
 (0)