Skip to content

Commit

Permalink
geosolutions-it#4647: remove some deprecation warnings
Browse files Browse the repository at this point in the history
On Behalf of DB Systel
  • Loading branch information
Florian Kellner committed Apr 30, 2024
1 parent e55b1d1 commit 483ffcd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion web/client/actions/__tests__/catalog-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ describe('Test correctness of the catalog actions', () => {
expect(retval.service).toBe(service);
});
it('deleteService', () => {
var retval = deleteService(status);
var retval = deleteService();

expect(retval).toExist();
expect(retval.type).toBe(DELETE_SERVICE);
Expand Down
9 changes: 6 additions & 3 deletions web/client/plugins/__tests__/DrawerMenu-test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ const SAMPLE_ITEM = {

const mouseMove = (x, y, node) => {
const doc = node ? node.ownerDocument : document;
const evt = doc.createEvent('MouseEvents');
evt.initMouseEvent('mousemove', true, true, window,
0, 0, 0, x, y, false, false, false, false, 0, null);
const evt = new MouseEvent(
'mousemove',
{
canBubble: true, cancelable: true, view: window, detail: 0, screenX: 0, screenY: 0, clientX: x, clientY: y,
ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, button: 0, relatedTarget: null
});
doc.dispatchEvent(evt);
return evt;
};
Expand Down
3 changes: 1 addition & 2 deletions web/client/plugins/mapEditor/enhancers/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {backgroundListSelector} from '../../../selectors/backgroundselector';
import {mapOptionsToSaveSelector} from '../../../selectors/mapsave';
import {textSearchConfigSelector, bookmarkSearchConfigSelector} from '../../../selectors/searchconfig';
import MapUtils from '../../../utils/MapUtils';
import { isNull } from 'util';


const saveSelector = createSelector(
Expand Down Expand Up @@ -52,7 +51,7 @@ export default compose(
const mapData = MapUtils.saveMapConfiguration(map, layers, groups,
backgrounds, textSearchConfig, bookmarkSearchConfig, additionalOptions);

return save({...mapData.map, layers: mapData.map.layers.map(l => pickBy(l, (p) => p !== undefined && !isNull(p)))}, owner);
return save({...mapData.map, layers: mapData.map.layers.map(l => pickBy(l, (p) => p !== undefined && !(p === null)))}, owner);
}
}),
WithConfirm,
Expand Down

0 comments on commit 483ffcd

Please sign in to comment.