fix Replace preview

fix broken Replace preview for extra networks tabs edit metadata
caused by #11808
This commit is contained in:
w-e-w
2024-06-30 20:01:58 +09:00
parent a30b19dd55
commit 957185f7eb
2 changed files with 9 additions and 1 deletions

View File

@@ -194,7 +194,7 @@ class UserMetadataEditor:
def setup_ui(self, gallery):
self.button_replace_preview.click(
fn=self.save_preview,
_js="function(x, y, z){return [selected_gallery_index(), y, z]}",
_js=f"function(x, y, z){{return [selected_gallery_index_id('{self.tabname + '_gallery_container'}'), y, z]}}",
inputs=[self.edit_name_input, gallery, self.edit_name_input],
outputs=[self.html_preview, self.html_status]
).then(