Skip to content

Commit c8a4859

Browse files
committed
fix: typo
1 parent 81595b7 commit c8a4859

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/src/composables/useDraftMedias.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export const useDraftMedias = createSharedComposable((host: StudioHost, git: Ret
208208
}
209209

210210
async function fileToDraftItem(directory: string, file: File): Promise<DraftItem<MediaItem>> {
211-
const rawDara = await fileToDataUrl(file)
211+
const rawData = await fileToDataUrl(file)
212212
const fsPath = directory && directory !== '/' ? joinURL(directory, file.name) : file.name
213213

214214
return {
@@ -222,8 +222,8 @@ export const useDraftMedias = createSharedComposable((host: StudioHost, git: Ret
222222
extension: fsPath.split('.').pop()!,
223223
stem: fsPath.split('.').join('.'),
224224
path: withLeadingSlash(fsPath),
225-
preview: await resizedataURL(rawDara, 128, 128),
226-
raw: rawDara,
225+
preview: await resizedataURL(rawData, 128, 128),
226+
raw: rawData,
227227
},
228228
}
229229
}

0 commit comments

Comments
 (0)