This commit is contained in:
Adria Navarro 2024-12-24 13:03:39 +01:00
parent fc51b4e132
commit 69312c31af
1 changed files with 2 additions and 6 deletions

View File

@ -5,11 +5,9 @@ import { cloneDeep } from "lodash"
import {
Row,
SaveRowRequest,
SaveTableRequest,
UIDatasource,
UIFieldMutation,
UIFieldSchema,
UpdateViewRequest,
ViewV2Type,
} from "@budibase/types"
import { Store as StoreContext } from "."
@ -195,12 +193,10 @@ export const createActions = (context: StoreContext): ActionDatasourceStore => {
}
// Saves the datasource definition
const saveDefinition = async (
newDefinition: UpdateViewRequest | SaveTableRequest
) => {
const saveDefinition = async (newDefinition: UIDatasource) => {
// Update local state
const originalDefinition = get(definition)
definition.set(newDefinition as any)
definition.set(newDefinition)
// Update server
if (get(config).canSaveSchema) {