Update renderer/pages/index.tsx

Co-authored-by: NayamAmarshe <nayamamarshe@protonmail.com>
This commit is contained in:
Yevgeniy Akimenko
2023-05-02 13:07:13 -07:00
committed by GitHub
parent 1dc313cb7f
commit af613ac3a5

View File

@@ -365,8 +365,7 @@ const Home = () => {
setVideoPath(filePath);
} else {
logit("📢 Setting image path: ", filePath);
SetImagePath(filePath);
setFormattedImagePath(formatPath(filePath));
SetImagePath(formatPath(filePath));
}
var dirname = filePath.match(/(.*)[\/\\]/)[1] || "";