diff --git a/domains/grid/components/GridWidgetIframe.vue b/domains/grid/components/GridWidgetIframe.vue index 50975c14..fecbead9 100644 --- a/domains/grid/components/GridWidgetIframe.vue +++ b/domains/grid/components/GridWidgetIframe.vue @@ -1,24 +1,49 @@ diff --git a/domains/grid/components/GridWidgetInstagram.vue b/domains/grid/components/GridWidgetInstagram.vue index 36a3f704..bc5fbd24 100644 --- a/domains/grid/components/GridWidgetInstagram.vue +++ b/domains/grid/components/GridWidgetInstagram.vue @@ -18,7 +18,7 @@ const processInstagramEmbeds = () => { } watch( - () => props, + () => props.src, async () => { embedSrc.value = '' await nextTick() diff --git a/domains/grid/components/GridWidgetX.vue b/domains/grid/components/GridWidgetX.vue index 3aeb8429..bf7659f6 100644 --- a/domains/grid/components/GridWidgetX.vue +++ b/domains/grid/components/GridWidgetX.vue @@ -13,7 +13,7 @@ const embedSrc = ref('') // each change (add, edit) of the widget require to "reinstall" the twitter script watch( - () => props, + () => props.src, async () => { embedSrc.value = '' await nextTick() diff --git a/domains/grid/schema/xWidgetSchema.ts b/domains/grid/schema/xWidgetSchema.ts index a460e8cf..188e2938 100644 --- a/domains/grid/schema/xWidgetSchema.ts +++ b/domains/grid/schema/xWidgetSchema.ts @@ -34,3 +34,4 @@ export const xWidgetBuilderSchema = xWidgetSchema ) export type XWidgetProperties = z.input +export type XType = z.infer