Skip to content

Commit

Permalink
fix: export filename in gist file
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Jun 27, 2023
1 parent 556d6c7 commit e39e75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partials/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Header({ onEdit, editable }: HeaderProps) {
const handleExport = useCallback(() => {
download(
'data:application/json;charset=UTF-8,' + encodeURIComponent(JSON.stringify(settings)),
'candi-tab-settings.json',
settings.gist?.fileName ?? 'candi-tab-settings.json',
);
}, [settings]);

Expand Down

0 comments on commit e39e75b

Please sign in to comment.