@sanity/default-layout
Advanced tools
Comparing version 0.99.10 to 0.100.0
@@ -45,5 +45,3 @@ 'use strict'; | ||
var typeNames = _schema2.default.types.map(function (schemaType) { | ||
return schemaType.name; | ||
}); | ||
var typeNames = _schema2.default.getTypeNames(); | ||
@@ -72,3 +70,3 @@ var Search = function (_React$Component) { | ||
// Get all fields that we want to search in (text and string) | ||
_schema2.default.types.forEach(function (type) { | ||
typeNames.forEach(function (type) { | ||
if (type.fields) { | ||
@@ -152,3 +150,3 @@ type.fields.forEach(function (field) { | ||
var typeName = item._type.split('.')[1]; | ||
var type = _schema2.default && _schema2.default.types.find(function (t) { | ||
var type = _schema2.default && typeNames.find(function (t) { | ||
return t.name === typeName; | ||
@@ -155,0 +153,0 @@ }); |
{ | ||
"name": "@sanity/default-layout", | ||
"version": "0.99.10", | ||
"version": "0.100.0", | ||
"description": "The default layout components for Sanity", | ||
@@ -31,8 +31,8 @@ "main": "lib/default-layout.js", | ||
"devDependencies": { | ||
"@sanity/base": "^0.99.10", | ||
"@sanity/base": "^0.100.0", | ||
"@sanity/check": "^0.99.0", | ||
"@sanity/cli": "^0.99.7", | ||
"@sanity/components": "^0.99.10", | ||
"@sanity/components": "^0.100.0", | ||
"@sanity/core": "^0.99.10", | ||
"@sanity/form-builder": "^0.99.10", | ||
"@sanity/form-builder": "^0.100.0", | ||
"chai": "^3.5.0", | ||
@@ -39,0 +39,0 @@ "chai-as-promised": "^6.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
318098
5510
1479