mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-17 18:32:35 +00:00
Fix API docs SSR bug
This commit is contained in:
parent
a995482b21
commit
5820e834f4
4 changed files with 9 additions and 5 deletions
changelog/entries/unreleased/bug
web-frontend/modules/database
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "bug",
|
||||
"message": "Fix API docs server side rendering bugs.",
|
||||
"issue_number": null,
|
||||
"bullet_points": [],
|
||||
"created_at": "2024-12-19"
|
||||
}
|
|
@ -11,7 +11,6 @@
|
|||
</div>
|
||||
|
||||
<MarkdownIt
|
||||
tag="p"
|
||||
class="api-docs__content"
|
||||
:content="
|
||||
$t('apiDocsUploadFile.description', {
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
</div>
|
||||
|
||||
<MarkdownIt
|
||||
tag="p"
|
||||
class="api-docs__content"
|
||||
:content="
|
||||
$t('apiDocsUploadFileViaURL.description', {
|
||||
|
|
|
@ -159,7 +159,7 @@ import APIDocsErrors from '@baserow/modules/database/components/docs/sections/AP
|
|||
import APIDocsMenu from '@baserow/modules/database/components/docs/sections/APIDocsMenu.vue'
|
||||
|
||||
// Re-use the FileFieldType docs response example.
|
||||
import { FileFieldType } from '../fieldTypes'
|
||||
import { FileFieldType } from '@baserow/modules/database/fieldTypes'
|
||||
|
||||
export default {
|
||||
name: 'APIDocsDatabase',
|
||||
|
@ -229,11 +229,10 @@ export default {
|
|||
return [key, fields.map((field) => this.populateField(field))]
|
||||
})
|
||||
)
|
||||
// return this.fieldData.map((field) => populateField(field))
|
||||
},
|
||||
withoutReadOnly() {
|
||||
return Object.fromEntries(
|
||||
Object.entries(this.fieldData).map(([key, fields]) => {
|
||||
Object.entries(this.fields).map(([key, fields]) => {
|
||||
return [
|
||||
key,
|
||||
fields.filter((field) => !field._.isReadOnly && !field.read_only),
|
||||
|
|
Loading…
Add table
Reference in a new issue