| @@ -99,10 +99,10 @@ | ||
| 99 | 99 | conditionId, |
| 100 | 100 | lastActive, |
| 101 | 101 | code_error, |
| 102 | 102 | code_error_trace |
| 103 | -}: Snippet): SnippetsExport['snippets'][number] => { | |
| 104 | - const exportSnippet: SnippetsExport['snippets'][number] = Object.fromEntries( | |
| 103 | +}: Snippet): SnippetsExport['snippets'][number] => | |
| 104 | + Object.fromEntries( | |
| 105 | 105 | Object.entries({ |
| 106 | 106 | id, |
| 107 | 107 | name, |
| 108 | 108 | desc, |
| @@ -121,11 +121,8 @@ | ||
| 121 | 121 | code_error, |
| 122 | 122 | code_error_trace |
| 123 | 123 | }).filter(([field, value]) => !isDefaultExportValue(field, value)) |
| 124 | 124 | ) |
| 125 | - | |
| 126 | - return exportSnippet | |
| 127 | -} | |
| 128 | 125 | |
| 129 | 126 | export const downloadBulkSnippetExportFile = (snippets: readonly Snippet[]) => { |
| 130 | 127 | if (0 === snippets.length) { |
| 131 | 128 | return |