Skip to content

Commit

Permalink
#15 Fixed attr:key in Tabs component
Browse files Browse the repository at this point in the history
  • Loading branch information
versusbassz committed Aug 8, 2021
1 parent eb42b2d commit 591d0ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/components/metabox/MetaboxContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ export const MetaboxContent = () => {

switch(key) {
case "entity": return (
<div className="vsm-tab-content">
<div className="vsm-tab-content" key={key}>
<div className="vsm-tab-content__title">Section: {key}</div>
<EntityPropsTable key={key} search={search} fieldsData={data} />
<EntityPropsTable search={search} fieldsData={data} />
</div>
);
case "meta": return (
<div className="vsm-tab-content">
<div className="vsm-tab-content" key={key}>
<div className="vsm-tab-content__title">Section: {key}</div>
<MetaTable key={key} search={search} fieldsData={data} />
<MetaTable search={search} fieldsData={data} />
</div>
);
default: return <p key={key}>Unknown tab: {key}</p>;
Expand Down

0 comments on commit 591d0ae

Please sign in to comment.