Skip to content

Commit 260a6f7

Browse files
committed
remove some warnings
1 parent aad9119 commit 260a6f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/reactComponents/ProjectManageModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default function ProjectManageModal(props: ProjectManageModalProps) {
138138
type="text"
139139
size="small"
140140
icon={<SelectOutlined />}
141-
onClick={(e) => {
141+
onClick={() => {
142142
props.setProject(record);
143143
props.onCancel(); // Close the modal after selecting
144144
}}
@@ -149,7 +149,7 @@ export default function ProjectManageModal(props: ProjectManageModalProps) {
149149
type="text"
150150
size="small"
151151
icon={<EditOutlined />}
152-
onClick={(e) => {
152+
onClick={() => {
153153
setCurrentRecord(record);
154154
setName(record.className);
155155
setRenameModalOpen(true);
@@ -161,7 +161,7 @@ export default function ProjectManageModal(props: ProjectManageModalProps) {
161161
type="text"
162162
size="small"
163163
icon={<CopyOutlined />}
164-
onClick={(e) => {
164+
onClick={() => {
165165
setCurrentRecord(record);
166166
setName(record.className + 'Copy');
167167
setCopyModalOpen(true);

src/reactComponents/ToolboxSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const ToolboxSettingsModal: React.FC<ToolboxSettingsModalProps> = ({ isOpen, sho
5555
const afterOpenChange = (open: boolean) => {
5656
// When the modal is opened, update the robotPyCategories.
5757
if (open) {
58-
setRobotPyCategories(robotPyToolbox.getToolboxCategories());
58+
setRobotPyCategories(robotPyToolbox.getToolboxCategories(null));
5959
}
6060
};
6161

0 commit comments

Comments
 (0)