Skip to content

Commit 171617c

Browse files
committed
fix: frame.jsonFilePath with correct json path to create zip file
1 parent e24aa18 commit 171617c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/VideoExplorer/Home/MainView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class MainView extends React.Component {
213213
const imageBlob = await imageFile.blob();
214214
zip.file(`frame_${frame.index}.png`, imageBlob, {binary: true})
215215

216-
const jsonFile = await fetch(frame.jsonFile);
216+
const jsonFile = await fetch(frame.jsonFilePath);
217217
const jsonBlob = await jsonFile.blob();
218218
zip.file(`frame_${frame.index}.json`, jsonBlob, {binary: true})
219219

src/stores/videoExplorerStore.js

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ export class videoExplorerStore {
212212
isSelected: false,
213213
index: parseInt(frameIndex),
214214
jsonFile: jsonFile,
215+
jsonFilePath: `${videoPath}${jsonFile}`,
215216
imageSrc: {
216217
'original': `${videoPath}frame${frameIndex}.png`,
217218
'thumb': `${videoPath}${thumbFolder}frame${frameIndex}.png`,

0 commit comments

Comments
 (0)