We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc9c814 commit e461fefCopy full SHA for e461fef
resources/assets/editor/components/ImagePicker.vue
@@ -45,7 +45,7 @@
45
const uploadingImages = ref<Image[]>([]);
46
const currentValue = ref<Image>();
47
48
- const [state, send] = useMachine(machine({
+ const service = useMachine(machine, {
49
id: "imagepicker",
50
accept: "image/*",
51
maxFiles: 10,
@@ -74,9 +74,9 @@
74
onImageSelect(store.images[0]);
75
})
76
},
77
- }));
+ });
78
79
- const fileUpload = computed(() => connect(state.value, send, normalizeProps));
+ const fileUpload = computed(() => connect(service, normalizeProps));
80
81
function onImageSelect(image: Image) {
82
model.value = image;
0 commit comments