Skip to content

Commit cbcd7eb

Browse files
committed
spaces instead of tabs
1 parent 52c2084 commit cbcd7eb

File tree

1 file changed

+14
-14
lines changed
  • src/pages/[platform]/build-a-backend/storage/list-files

1 file changed

+14
-14
lines changed

src/pages/[platform]/build-a-backend/storage/list-files/index.mdx

+14-14
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,20 @@ const PAGE_SIZE = 20;
7070
let nextToken;
7171
// ...
7272
const loadNextPage = async () => {
73-
const response = await list({
74-
path: 'photos/',
75-
// Alternatively, path: ({ identityId }) => `album/{identityId}/photos/`
76-
options: {
77-
pageSize: PAGE_SIZE,
78-
nextToken,
79-
},
80-
});
81-
if (response.nextToken) {
82-
nextToken = response.nextToken;
83-
} else {
84-
nextToken = undefined;
85-
}
86-
// render list items from response.items
73+
const response = await list({
74+
path: 'photos/',
75+
// Alternatively, path: ({ identityId }) => `album/{identityId}/photos/`
76+
options: {
77+
pageSize: PAGE_SIZE,
78+
nextToken,
79+
},
80+
});
81+
if (response.nextToken) {
82+
nextToken = response.nextToken;
83+
} else {
84+
nextToken = undefined;
85+
}
86+
// render list items from response.items
8787
};
8888
```
8989

0 commit comments

Comments
 (0)