fix: product => map document name

This commit is contained in:
puriphatt 2024-11-12 16:01:30 +07:00
parent 64fc8522af
commit e502153018

View file

@ -12,7 +12,7 @@ defineProps<{
const attachment = defineModel<string[]>('attachment', { default: [] });
const mapName = (val: string): string => {
const name = options.value.find((v) => v.value === val);
const name = objectOptions.find((v) => v.value === val);
return name ? name.label : '';
};