Skip to content

[Bug] Remote repositories throws the TypeError: Cannot read properties of null (reading 'account') if not configure DockerHub/PrimeHub #20

Open
@jimmyliao

Description

@jimmyliao

Summary

With fresh installed Crane v1.0.0, the Settings page did not configure DockerHub and PrimeHub, when navigating to the REMOTE REPOSITORIES, got the TypeError: Cannot read properties of null (reading 'account')

Expected Behavior (required)

Crane can show the empty result on the remote repositories, or prompt user to setup DockerHub or PrimeHub.

Current Behavior (required)

  1. Crane app show default the crane icon loop on window.
  2. Developer Tools web console throws:
react-dom.production.min.js:216 TypeError: Cannot read properties of null (reading 'account')
    at ListRemoteImage.tsx:178
    at Za (react-dom.production.min.js:262)
    at F.unstable_runWithPriority (scheduler.production.min.js:18)
    at R6 (react-dom.production.min.js:122)
    at T3 (react-dom.production.min.js:261)
    at T7 (react-dom.production.min.js:243)
    at react-dom.production.min.js:123
    at F.unstable_runWithPriority (scheduler.production.min.js:18)
    at R6 (react-dom.production.min.js:122)
    at Yr (react-dom.production.min.js:123)
wr @ react-dom.production.min.js:216
I9.h.callback @ react-dom.production.min.js:216
Xr @ react-dom.production.min.js:131
aa @ react-dom.production.min.js:220
qa @ react-dom.production.min.js:259
F.unstable_runWithPriority @ scheduler.production.min.js:18
R6 @ react-dom.production.min.js:122
x8 @ react-dom.production.min.js:252
T7 @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
F.unstable_runWithPriority @ scheduler.production.min.js:18
R6 @ react-dom.production.min.js:122
Yr @ react-dom.production.min.js:123
g8 @ react-dom.production.min.js:122
s8 @ react-dom.production.min.js:237
gr @ react-dom.production.min.js:170
(anonymous) @ index.js:424
H @ raf.js:36
(anonymous) @ raf.js:40
requestAnimationFrame (async)
c @ raf.js:11
H @ raf.js:39
N @ raf.js:47
(anonymous) @ index.js:423
Za @ react-dom.production.min.js:262
F.unstable_runWithPriority @ scheduler.production.min.js:18
R6 @ react-dom.production.min.js:122
T3 @ react-dom.production.min.js:261
T7 @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
F.unstable_runWithPriority @ scheduler.production.min.js:18
R6 @ react-dom.production.min.js:122
Yr @ react-dom.production.min.js:123
g8 @ react-dom.production.min.js:122
s8 @ react-dom.production.min.js:237
enqueueSetState @ react-dom.production.min.js:133
p0.setState @ react.production.min.js:12
l0.onResize @ index.js:66
ListRemoteImage.tsx:178 Uncaught TypeError: Cannot read properties of null (reading 'account')
    at ListRemoteImage.tsx:178
    at Za (react-dom.production.min.js:262)
    at F.unstable_runWithPriority (scheduler.production.min.js:18)
    at R6 (react-dom.production.min.js:122)
    at T3 (react-dom.production.min.js:261)
    at T7 (react-dom.production.min.js:243)
    at react-dom.production.min.js:123
    at F.unstable_runWithPriority (scheduler.production.min.js:18)
    at R6 (react-dom.production.min.js:122)
    at Yr (react-dom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions