Closed (fixed)
Project:
Charts
Version:
5.2.x-dev
Component:
Blocks integration
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Jun 2026 at 03:31 UTC
Updated:
2 Jul 2026 at 15:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
andileco commentedComment #4
andileco commentedOne issue I would like to address is when I want to go back and edit the block, the text area shows [object Object] instead of the JSON string. I tried to address this, but my solution isn't working.
Comment #5
effulgentsia commentedDoes https://git.drupalcode.org/project/canvas/-/merge_requests/1231 solve #4?
Comment #6
andileco commented@effulgentsia - I applied https://git.drupalcode.org/project/canvas/-/merge_requests/1231.patch on top of 1.5.1, but it doesn't seem to have worked; could it be something in MY code that's causing issues?
Comment #7
effulgentsia commentedFrom the Canvas directory, you need to run
npm install; npm run buildon the command line. Sorry, I should have mentioned that in #5. We prebuild the Canvas app for tagged releases, but not if you're running an untagged release or custom patches. If you're able to do that to confirm that patch works, that would be helpful. If not, we might just merge it anyway so that it makes it into the next tagged release and you can test it then.Comment #8
andileco commented@effulgentsia I was able to run
npm install, but I don't see a build script inside the package.json file. Is there another command I need to use?Comment #9
effulgentsia commentedThe main package.json contains npm workspaces, so
npm run buildshould run the build script for each workspace. For this patch, you only need to build theuiworkspace, so if you prefer you can insteadcd ui; npm run build.Comment #10
effulgentsia commentedApologies. I got that wrong. From the root Canvas directory you'd need to do either
npm run build --workspacesto build all workspaces ornpm run build --workspace=uiif you want to only build the ui one.Comment #11
andileco commented@effulgentsia - I did #9 and it worked - the code now shows in the textfield as a string of JSON rather than [object Object].
Comment #12
andileco commentedNow that the JSON issue is resolved on the Canvas side, marking this for review.
Comment #13
nikathoneLooks good to me.
Comment #14
andileco commented