fixed the logic to prepare ref of head image from workflow on initialization.

This commit is contained in:
bruefire
2023-12-09 19:21:19 +09:00
parent ec845c3254
commit 5a1889db74
+4 -4
View File
@@ -92,9 +92,9 @@ app.registerExtension({
// Add our own callback to the combo widget to render an image when it changes
idWidget.callback = function () {
let imageData = idWidget.value.split(":");
let dirIds = imageData[imageData.length - 1].split("/");
showImage(dirIds[0] + "/" + imageData[0]);
// let imageData = idWidget.value.split(":");
// let dirIds = imageData[imageData.length - 1].split("/");
// showImage("extVideoFrame" + dirIds[0] + "/" + imageData[0]);
};
// On load if we have a value then render the image
@@ -102,7 +102,7 @@ app.registerExtension({
if (idWidget.value) {
let imageData = idWidget.value.split(":");
let dirIds = imageData[imageData.length - 1].split("/");
showImage(dirIds[0] + "/" + imageData[0]);
showImage("extVideoFrame" + dirIds[0] + "/" + imageData[0]);
}
});