It’s hard to say without seeing more code, but it is probably the case that you are trying to use index in the same code block as it is defined. Framework only automatically resolves promises and handles reactivity between blocks, not within them.
So if you have
```js
const index = FileAttachment("./data/idx-visitor-logs.json").json();
display(index);
```
Then you will see what you described. You either need to explicitly wait for the promise:
```js
const index = await FileAttachment("./data/idx-visitor-logs.json").json();
display(index);
```
or move the definition of index and its usage into different blocks:
```js
const index = FileAttachment("./data/idx-visitor-logs.json").json();
```
```js
display(index);
```
Dunno if there’s a better place to suggest this, but the word promise in The value of volcano above is a promise. In other code blocks, the promise is implicitly awaited and hence you can refer to the resolved value directly. on this page goes to a dead page.