Skip to content

Commit

Permalink
Merge branch 'next' into re_add_proto_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvilas authored Sep 7, 2023
2 parents 7480f0c + 3515f32 commit a233d1f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions library/e2e/sites/standalone-without-parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<div id="spec"></div>

<script src="../../browser/standalone/without-parser.js"></script>
<link rel="stylesheet" href="../../styles/default.min.css" />

<script>
const schema = {
Expand Down
1 change: 1 addition & 0 deletions library/e2e/sites/standalone.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<div id="spec"></div>

<script src="../../browser/standalone/index.js"></script>
<link rel="stylesheet" href="../../styles/default.min.css" />

<script>
const schema = {
Expand Down
12 changes: 6 additions & 6 deletions library/src/containers/Messages/Messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Messages: React.FunctionComponent = () => {
.messages()
.all();

if (!messages || Object.keys(messages).length === 0) {
if (!messages || messages.length === 0) {
return null;
}

Expand All @@ -29,17 +29,17 @@ export const Messages: React.FunctionComponent = () => {
{MESSAGES_TEXT}
</h2>
<ul>
{Object.entries(messages).map(([messageName, message], idx) => (
{messages.map((message, idx) => (
<li
className="mb-4"
key={messageName}
id={CommonHelpers.getIdentifier(`message-${messageName}`, config)}
key={message.id()}
id={CommonHelpers.getIdentifier(`message-${message.id()}`, config)}
>
<Message
messageName={messageName}
messageName={message.id()}
message={message}
index={idx + 1}
key={messageName}
key={message.id()}
/>
</li>
))}
Expand Down
10 changes: 5 additions & 5 deletions library/src/containers/Schemas/Schemas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Schemas: React.FunctionComponent = () => {
.schemas()
.all();

if (!schemas || Object.keys(schemas).length === 0) {
if (!schemas || schemas.length === 0) {
return null;
}

Expand All @@ -29,13 +29,13 @@ export const Schemas: React.FunctionComponent = () => {
{SCHEMAS_TEXT}
</h2>
<ul>
{Object.entries(schemas).map(([schemaName, schema]) => (
{schemas.map(schema => (
<li
className="mb-4"
key={schemaName}
id={CommonHelpers.getIdentifier(`schema-${schemaName}`, config)}
key={schema.id()}
id={CommonHelpers.getIdentifier(`schema-${schema.id()}`, config)}
>
<Schema schemaName={schemaName} schema={schema} />
<Schema schemaName={schema.id()} schema={schema} />
</li>
))}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion library/src/containers/Servers/Servers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Servers: React.FunctionComponent = () => {
.all();
const config = useConfig();

if (!Object.keys(servers).length) {
if (!servers.length) {
return null;
}

Expand Down

0 comments on commit a233d1f

Please sign in to comment.