remove-makegetotheraccounts
Alex Gleason 2022-03-16 21:58:30 -05:00
rodzic f1a286f5e0
commit b0623597ea
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -29,6 +29,7 @@ export const AttachmentRecord = ImmutableRecord({
status: null,
});
// Ensure attachments have required fields
const normalizeUrls = (attachment: ImmutableMap<string, any>) => {
const url = [
attachment.get('url'),
@ -44,7 +45,6 @@ const normalizeUrls = (attachment: ImmutableMap<string, any>) => {
return attachment.mergeWith(mergeDefined, base);
};
// Ensure attachments have required fields
export const normalizeAttachment = (attachment: Record<string, any>) => {
return AttachmentRecord(
normalizeUrls(ImmutableMap(fromJS(attachment))),