diff --git a/package.json b/package.json
index 2ab691c58..c3e914031 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,7 @@
"react-breadcrumbs": "^1.3.16",
"react-codemirror": "^0.2.3",
"react-dom": "^15.2.0",
- "react-jsonschema-form": "^0.41.2",
+ "react-jsonschema-form": "^0.42.0",
"react-redux": "^4.0.0",
"react-router": "^2.7.0",
"react-router-redux": "4.0.5",
diff --git a/src/components/HomePage.js b/src/components/HomePage.js
index ca0857b25..60bda4ce3 100644
--- a/src/components/HomePage.js
+++ b/src/components/HomePage.js
@@ -5,6 +5,7 @@ import React, { Component } from "react";
import Spinner from "./Spinner";
import AuthForm from "./AuthForm";
+import { isObject } from "../utils";
function ServerProps({node}: {node: Object}) {
@@ -17,7 +18,7 @@ function ServerProps({node}: {node: Object}) {
{key} |
{
- typeof childNode === "object" ?
+ isObject(childNode) ?
:
typeof childNode === "string" && childNode.startsWith("http") ?
{childNode} :
diff --git a/src/sagas/bucket.js b/src/sagas/bucket.js
index ec2a9d462..aa60c702b 100644
--- a/src/sagas/bucket.js
+++ b/src/sagas/bucket.js
@@ -44,7 +44,6 @@ export function* updateBucket(getState: GetStateFn, action: ActionType {
it("should post new bucket data", () => {
expect(updateBucket.next().value)
.eql(call([bucket, bucket.setData], {a: 1, last_modified: 42}, {
- patch: true, safe: true}));
+ safe: true,
+ }));
});
it("should update the route path", () => {
@@ -374,7 +375,7 @@ describe("bucket sagas", () => {
.eql(call([collection, collection.setData], {
...collectionData,
last_modified: 42,
- }, {patch: true, safe: true}));
+ }, {safe: true}));
});
it("should update the route path", () => {
@@ -733,7 +734,7 @@ describe("bucket sagas", () => {
.eql(call([bucket, bucket.updateGroup], {
...groupData,
last_modified: 42
- }, {patch: true, safe: true}));
+ }, {safe: true}));
});
it("should update the route path", () => {
diff --git a/test/sagas/collection_test.js b/test/sagas/collection_test.js
index 38e4e8a94..25bfd6bed 100644
--- a/test/sagas/collection_test.js
+++ b/test/sagas/collection_test.js
@@ -382,7 +382,6 @@ describe("collection sagas", () => {
...record,
last_modified: 42
}, {
- patch: true,
safe: true
}));
});
|