File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,12 @@ function ObjectMenu() {
196196 < Other nearby = { obj . data ?. nearby } nearbyReferenceInfos = { obj . data ?. nearbyReferenceInfos } />
197197 </ div >
198198 }
199-
200- return < div key = { obj . tick } > { $t . object_error } </ div >
199+ else if ( obj . data ?. error ) {
200+ return < div key = { obj . tick } > { $t . object_error } </ div >
201+ }
202+ else {
203+ return < div > { $t . no_selected } </ div >
204+ }
201205}
202206
203207function vec2s ( v ) {
@@ -226,10 +230,6 @@ function Scene({ scene }) {
226230function Object ( { first } ) {
227231 const [ status , setStatus ] = R . useState ( null )
228232
229- if ( first == null ) {
230- return < div > { $t . no_selected } </ div >
231- }
232-
233233 const components = [ ]
234234 for ( let i = 0 ; i < first . components . length ; i ++ ) {
235235 components [ i ] = < Component key = { i } comp = { first . components [ i ] } obj = { first } />
You can’t perform that action at this time.
0 commit comments