fix(metablogizer): Fix sites list not rendering
The RPC declaration with `expect: { sites: [] }` extracts the array
directly, so data[1] IS the sites array, not an object with .sites property.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2bf005f428
commit
585a5d0f6c
@ -136,7 +136,7 @@ return view.extend({
|
|||||||
render: function(data) {
|
render: function(data) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var status = data[0] || {};
|
var status = data[0] || {};
|
||||||
var sites = (data[1] && data[1].sites) || [];
|
var sites = data[1] || [];
|
||||||
|
|
||||||
// Inject styles
|
// Inject styles
|
||||||
var styleEl = document.createElement('style');
|
var styleEl = document.createElement('style');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user