Skip to content

Commit

Permalink
Fix table download to match the spec (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristineguadelupe authored Jan 22, 2024
1 parent dd2bbf7 commit 905c9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kino/table.ex
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ defmodule Kino.Table do
end

def handle_event("download", %{"format" => format}, ctx) do
exported = ctx.assigns.module.export_data(ctx.assigns.state, format)
{:ok, exported} = ctx.assigns.module.export_data(ctx.assigns.state, format)
info = %{filename: ctx.assigns.info.name, type: exported.type, format: exported.extension}
reply_payload = {:binary, info, exported.data}
send_event(ctx, ctx.origin, "download_content", reply_payload)
Expand Down

0 comments on commit 905c9eb

Please sign in to comment.