Update file-grid.js
This commit is contained in:
@@ -346,7 +346,7 @@ function renderFiles(files) {
|
|||||||
*/
|
*/
|
||||||
async function fetchFiles() {
|
async function fetchFiles() {
|
||||||
try {
|
try {
|
||||||
const endpoint = isTrashPage ? '/api/trash' : '/api/rooms/starred';
|
const endpoint = isTrashPage ? '/api/rooms/trash' : '/api/rooms/starred';
|
||||||
const response = await fetch(endpoint);
|
const response = await fetch(endpoint);
|
||||||
const files = await response.json();
|
const files = await response.json();
|
||||||
if (files) {
|
if (files) {
|
||||||
|
|||||||
Reference in New Issue
Block a user