mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* Added recently viewed page and show that on workspace homepage * Fixed undo redo * Fixed feedback
18 lines
461 B
JavaScript
18 lines
461 B
JavaScript
export default (client) => {
|
|
return {
|
|
fetchItems({ workspaceIds = [], types = [], limit, cursor = null }) {
|
|
const params = { limit }
|
|
if (cursor !== null) {
|
|
params.cursor = cursor
|
|
}
|
|
if (workspaceIds.length > 0) {
|
|
params.workspace_ids = workspaceIds.join(',')
|
|
}
|
|
if (types.length > 0) {
|
|
params.types = types.join(',')
|
|
}
|
|
return client.get('/last-viewed/items/', { params })
|
|
},
|
|
}
|
|
}
|