mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 12:28:26 +00:00
fix: edit & remove buttons issue after category switch
This commit is contained in:
parent
0f9205db63
commit
888ac5715b
@ -48,7 +48,6 @@ import { IBlock } from "@/types/block.types";
|
||||
import { ICategory } from "@/types/category.types";
|
||||
import { BlockPorts } from "@/types/visual-editor.types";
|
||||
|
||||
|
||||
import BlockDialog from "../BlockDialog";
|
||||
import { ZOOM_LEVEL } from "../constants";
|
||||
import { useVisualEditor } from "../hooks/useVisualEditor";
|
||||
@ -141,6 +140,7 @@ const Diagrams = () => {
|
||||
|
||||
if (id) {
|
||||
setSelectedCategoryId?.(id);
|
||||
setSelectedBlockId(undefined); // Reset selected block when switching categories, resetting edit & remove buttons
|
||||
}
|
||||
}
|
||||
};
|
||||
|
7
package-lock.json
generated
7
package-lock.json
generated
@ -7,6 +7,7 @@
|
||||
"": {
|
||||
"name": "hexabot",
|
||||
"version": "2.0.0",
|
||||
"license": "AGPL-3.0-only",
|
||||
"workspaces": [
|
||||
"frontend",
|
||||
"widget"
|
||||
@ -19,7 +20,8 @@
|
||||
},
|
||||
"frontend": {
|
||||
"name": "hexabot-ui",
|
||||
"version": "0.1.0",
|
||||
"version": "2.0.0",
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@chatscope/chat-ui-kit-react": "^2.0.3",
|
||||
"@chatscope/chat-ui-kit-styles": "^1.4.0",
|
||||
@ -9802,7 +9804,8 @@
|
||||
},
|
||||
"widget": {
|
||||
"name": "hexabot-widget",
|
||||
"version": "0.0.0",
|
||||
"version": "2.0.0",
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@types/emoji-js": "^3.5.2",
|
||||
"autolinker": "^4.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user