Fix session/image UX and align post cost totals
This commit is contained in:
@@ -60,16 +60,13 @@
|
||||
};
|
||||
|
||||
const agentImageId = getAgentImageId();
|
||||
if (!agentImageId) {
|
||||
return wp.element.createElement(BlockEdit, props);
|
||||
}
|
||||
|
||||
const openImageModal = () => {
|
||||
// Dispatch custom event to open image generation modal
|
||||
window.dispatchEvent(
|
||||
new CustomEvent('wpaw:open-image-modal', {
|
||||
detail: {
|
||||
agentImageId: agentImageId,
|
||||
agentImageId: agentImageId || null,
|
||||
blockId: clientId,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user