fix(bte panel): store BTE-relative thumbUrl so renderer's PROXY_BASE wrap doesn't double-encode
Some checks failed
plugin-tests / test (push) Failing after 6s
Some checks failed
plugin-tests / test (push) Failing after 6s
Browser console: 'Failed to load resource: ...%252Fb6078c89...%252Fimage:0'. _refreshGrid normalized thumbUrl as a full proxy URL, then _renderGrid + _renderDetail wrap it again with PROXY_BASE+encodeURIComponent → %2F → %252F. Fix: store raw BTE path; let the existing renderer wrap it once. Karpathy 4 rules: surface root cause (double-wrap, not the encoder), smallest fix (one expression), surgical (no other shape change).
This commit is contained in:
parent
d61f9e8d3f
commit
e9554fa051
@ -369,7 +369,7 @@
|
|||||||
.filter((a) => a.brandId === state.brand || !state.brand || state.brand === "planb")
|
.filter((a) => a.brandId === state.brand || !state.brand || state.brand === "planb")
|
||||||
.map((a) => ({
|
.map((a) => ({
|
||||||
id: a.id,
|
id: a.id,
|
||||||
thumbUrl: a.hasImageData ? (PROXY_BASE + encodeURIComponent("/api/assets/" + a.id + "/image")) : null,
|
thumbUrl: a.hasImageData ? ("/api/assets/" + a.id + "/image") : null,
|
||||||
lifecycle: a.status,
|
lifecycle: a.status,
|
||||||
ratingCount: 0,
|
ratingCount: 0,
|
||||||
meanScore: a.visualPolishScore || a.brandFitScore || null,
|
meanScore: a.visualPolishScore || a.brandFitScore || null,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user