Fixed issue that would prevent the "Import from URL" functionality to work in a many to many interface (#6289)

Fixes #6287
This commit is contained in:
Rijk van Zanten
2021-06-15 14:08:59 -04:00
committed by GitHub
parent 4f9ae6591e
commit 092a3266ed

View File

@@ -274,7 +274,12 @@ export default defineComponent({
url: url.value,
});
emit('input', response.data.data);
if (props.multiple) {
emit('input', [response.data.data]);
} else {
emit('input', response.data.data);
}
activeDialog.value = null;
url.value = '';
} catch (err) {