Skip to content

Commit 44082e8

Browse files
authored
fix(export-advanced): compute filename on runtime (#1229)
1 parent 839a4f3 commit 44082e8

File tree

1 file changed

+1
-1
lines changed
  • packages/plugin-export-advanced/src

1 file changed

+1
-1
lines changed

packages/plugin-export-advanced/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getForm(
4343
form.push({
4444
label: 'Filename',
4545
type: 'String',
46-
defaultValue: `${collection.name} - ${new Date().toISOString().substring(0, 10)}`,
46+
defaultValue: () => `${collection.name} - ${new Date().toISOString().substring(0, 10)}`,
4747
});
4848
}
4949

0 commit comments

Comments
 (0)