🐛 Attempt to fix load crash on UC Browser
This commit is contained in:
@@ -26,6 +26,7 @@ import { CredentialsDropdown } from '@/features/credentials'
|
||||
import { useSheets } from '../../hooks/useSheets'
|
||||
import { Sheet } from '../../types'
|
||||
import { RowsFilterTableList } from './RowsFilterTableList'
|
||||
import { createId } from '@paralleldrive/cuid2'
|
||||
|
||||
type Props = {
|
||||
options: GoogleSheetsOptions
|
||||
@@ -65,21 +66,21 @@ export const GoogleSheetsSettingsBody = ({
|
||||
case GoogleSheetsAction.GET: {
|
||||
const newOptions: GoogleSheetsGetOptions = {
|
||||
...baseOptions,
|
||||
...defaultGoogleSheetsGetOptions,
|
||||
...defaultGoogleSheetsGetOptions(createId),
|
||||
}
|
||||
return onOptionsChange({ ...newOptions })
|
||||
}
|
||||
case GoogleSheetsAction.INSERT_ROW: {
|
||||
const newOptions: GoogleSheetsInsertRowOptions = {
|
||||
...baseOptions,
|
||||
...defaultGoogleSheetsInsertOptions,
|
||||
...defaultGoogleSheetsInsertOptions(createId),
|
||||
}
|
||||
return onOptionsChange({ ...newOptions })
|
||||
}
|
||||
case GoogleSheetsAction.UPDATE_ROW: {
|
||||
const newOptions: GoogleSheetsUpdateRowOptions = {
|
||||
...baseOptions,
|
||||
...defaultGoogleSheetsUpdateOptions,
|
||||
...defaultGoogleSheetsUpdateOptions(createId),
|
||||
}
|
||||
return onOptionsChange({ ...newOptions })
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"aws-sdk": "2.1321.0",
|
||||
"bot-engine": "workspace:*",
|
||||
"cors": "2.8.5",
|
||||
"@paralleldrive/cuid2": "2.2.0",
|
||||
"db": "workspace:*",
|
||||
"google-spreadsheet": "3.3.0",
|
||||
"got": "12.5.3",
|
||||
@@ -35,6 +34,7 @@
|
||||
"trpc-openapi": "1.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@paralleldrive/cuid2": "2.2.0",
|
||||
"@babel/preset-env": "7.20.2",
|
||||
"@faire/mjml-react": "3.1.1",
|
||||
"@playwright/test": "1.31.1",
|
||||
|
||||
Reference in New Issue
Block a user