Skip to content

Commit 5dc091a

Browse files
committed
fix(files): jsunit file_conversions
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent eb92120 commit 5dc091a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/files/src/actions/convertAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type ConversionsProvider = {
2222
export const ACTION_CONVERT = 'convert'
2323
export const registerConvertActions = () => {
2424
// Generate sub actions
25-
const convertProviders = getCapabilities()?.files.file_conversions as ConversionsProvider[] ?? []
25+
const convertProviders = getCapabilities()?.files?.file_conversions as ConversionsProvider[] ?? []
2626
const actions = convertProviders.map(({ to, from, displayName }) => {
2727
return new FileAction({
2828
id: `convert-${from}-${to}`,

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)