Skip to content

Commit befb438

Browse files
Copilotmscolnick
andauthored
[WIP] Fix Altair embed options to remove actions (#7285)
- [x] Understand the problem: typecheck error in vega-component.tsx - [x] Fix the type error for `actions` variable (line 251) - [x] Run typecheck to verify the fix - [x] Improve type assertion to include all action options - [x] Reply to the comment with the fix <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mscolnick <2753772+mscolnick@users.noreply.github.com>
1 parent 0ae0e6c commit befb438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎frontend/src/plugins/impl/vega/vega-component.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const LoadedVegaComponent = ({
105105
const actions = useMemo(() => {
106106
// If embedOptions contains 'actions', use it directly
107107
if (embedOptions && "actions" in embedOptions) {
108-
return embedOptions.actions;
108+
return embedOptions.actions as boolean | { export?: boolean; source?: boolean; compiled?: boolean; editor?: boolean } | undefined;
109109
}
110110

111111
// Otherwise use defaults

0 commit comments

Comments
 (0)