Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Feb 20, 2023
1 parent 10ce705 commit 5243709
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scripts/apps/authoring-react/data-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ export const authoringStorageIArticle: IAuthoringStorage<IArticle> = {

let diff = generatePatch(original, _current);

// Object patching is overriding fields of object type with diff.
// If we make changes to such a field it is not saved correctly.
// So we need to add all fields which are of object type to the diff object.
Object.keys(diff).forEach((key) => {
if (isObject(diff[key])) {
diff[key] = _current[key];
Expand Down
2 changes: 1 addition & 1 deletion scripts/apps/authoring/metadata/PlacesService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function PlacesServiceFactory(api, features, metadata) {
class PlacesService implements IPlacesService {
searchDateline(query: string, lang: string) {
return this._searchGeonames(query, lang, true)
.then((geonames) => geonames.map(geoNameToCity))
.then((geonames) => geonames.map((x) => geoNameToCity(x)))
.catch(() => this._searchCities(query));
}

Expand Down
1 change: 0 additions & 1 deletion scripts/core/superdesk-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ declare module 'superdesk-api' {
}

export type IDatelineValueOperational = {
day?: string;
date?: string;
source?: string;
located?: ILocated;
Expand Down

0 comments on commit 5243709

Please sign in to comment.