fix js bug

Signed-off-by: wanghuajian <wanghuajian3@huawei.com>
This commit is contained in:
wanghuajian 2024-09-03 19:14:17 +08:00
parent f7eb6c939c
commit 553afaa8b6

View File

@ -71,7 +71,7 @@ std::shared_ptr<UnifiedRecord> ConvertUtils::Convert(std::shared_ptr<PasteDataRe
PASTEBOARD_HILOGW(PASTEBOARD_MODULE_CLIENT, "entries is nullptr");
auto udmfValue = record->GetUDMFValue();
if (udmfValue) {
udmfRecord->AddEntry(CommonUtils::Convert2UtdId(record->GetUDType(), record->GetMimeType()),
udmfRecord->AddEntry(CommonUtils::Convert2UtdId(record->GetUDType(), record->GetMimeType()),
std::move(*udmfValue));
}
return udmfRecord;