Skip to content

Commit

Permalink
fix: global blocks name incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
surajair committed Nov 4, 2024
1 parent f9a09f9 commit 01136fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Suraj Air",
"license": "BSD-3-Clause",
"homepage": "https://chaibuilder.com",
"version": "1.2.110-beta.1",
"version": "1.2.111",
"type": "module",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/core/components/settings/GlobalBlockSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useGlobalBlocksList, useSelectedBlock, useUpdateBlocksProps } from "../../hooks";
import { startCase } from "lodash-es";
import { startCase, get } from "lodash-es";

export const GlobalBlockSettings = () => {
const selectedBlock = useSelectedBlock() as any;
Expand All @@ -14,7 +14,7 @@ export const GlobalBlockSettings = () => {
onChange={(e) => {
updateBlockProps([selectedBlock._id], {
globalBlock: e.target.value,
_name: `Global: ${startCase(e.target.value)}`,
_name: `Global: ${startCase(get(list, e.target.value, "")?.name)}`,
});
}}>
<option value="">Select a global block</option>
Expand Down

0 comments on commit 01136fb

Please sign in to comment.