refactor: 💡 update how we determine is pagination is supported (#2122)

This commit is contained in:
Cameron Perera authored and GitHub committed 2024-01-30 17:41:57 -06:00
1 parent 13f1c5cc23
commit cb972cfc8a
3 files changed
+11 -9

No files matched your search

+3 -3
View File
@@ -74,10 +74,10 @@ function routes() {
});
}
const filteredResultSet = resultSet.filter(makeBooleanFilter(filter));
// add a list_token to the response to simulate pagination
// without having list_token, the unsupported controller modal
// add a response_type to the response to simulate pagination
// without having response_type, the unsupported controller modal
// will show when running with mirage
return { items: filteredResultSet.models, list_token: '12345' };
return { items: filteredResultSet.models, response_type: 'complete' };
},
);
this.post('/scopes', function ({ scopes }) {