Skip to content

Commit

Permalink
fix metadata load loop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpineda committed Dec 22, 2022
1 parent 82d8384 commit 2fe8f56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v0.6.8]

## Added

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "titan-reactor",
"productName": "Titan Reactor",
"version": "0.6.7",
"version": "0.6.8",
"description": "An OpenBW Renderer",
"main": "dist/electron/main/index.js",
"typings": "dist/types/index.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions src/renderer/command-center/command-center.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ const CommandCenter = () => {
// populate the readme of a remote plugin
useEffect( () => {
if ( plugin.remote && !plugin.remote.readme ) {
console.log( "load remote metadata" );
loadRemoteMetaData( plugin.remote.name ).then( ( metadata ) => {
if ( plugin.remote && metadata ) {
console.log( metadata );
if ( plugin.remote && metadata?.readme && !plugin.remote.readme ) {
plugin.remote.readme = metadata.readme;
setSelectedPluginPackage( { ...plugin } );
}
Expand Down

0 comments on commit 2fe8f56

Please sign in to comment.