mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 16:51:20 +01:00
Fix to ignore modified styleSpec.
This commit is contained in:
parent
b31537e063
commit
9b4d924dff
1 changed files with 8 additions and 1 deletions
|
@ -19,12 +19,19 @@ export default class SpecDoc extends React.Component {
|
||||||
macos: "macOS",
|
macos: "macOS",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const renderValues = (
|
||||||
|
!!values &&
|
||||||
|
// HACK: Currently we merge additional values into the stylespec, so this is required
|
||||||
|
// See <https://github.com/maputnik/editor/blob/master/src/components/fields/PropertyGroup.jsx#L16>
|
||||||
|
!Array.isArray(values)
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{doc &&
|
{doc &&
|
||||||
<div className="SpecDoc">
|
<div className="SpecDoc">
|
||||||
<div className="SpecDoc__doc">{doc}</div>
|
<div className="SpecDoc__doc">{doc}</div>
|
||||||
{values &&
|
{renderValues &&
|
||||||
<ul className="SpecDoc__values">
|
<ul className="SpecDoc__values">
|
||||||
{Object.entries(values).map(([key, value]) => {
|
{Object.entries(values).map(([key, value]) => {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue