mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 20:01:10 +10:00
ignore type error
This commit is contained in:
@ -1,9 +1,7 @@
|
|||||||
import React, { useEffect, useMemo } from "react";
|
import React, { useEffect, useMemo } from "react";
|
||||||
import {
|
import {
|
||||||
ActionIcon,
|
ActionIcon,
|
||||||
Affix,
|
|
||||||
AppShell,
|
AppShell,
|
||||||
Button,
|
|
||||||
Group,
|
Group,
|
||||||
ScrollArea,
|
ScrollArea,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
@ -62,7 +60,9 @@ export default function ShareShell({
|
|||||||
const { data } = useGetSharedPageTreeQuery(shareId);
|
const { data } = useGetSharedPageTreeQuery(shareId);
|
||||||
const readOnlyEditor = useAtomValue(readOnlyEditorAtom);
|
const readOnlyEditor = useAtomValue(readOnlyEditorAtom);
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
const setSharedPageTree = useSetAtom(sharedPageTreeAtom);
|
const setSharedPageTree = useSetAtom(sharedPageTreeAtom);
|
||||||
|
// @ts-ignore
|
||||||
const setSharedTreeData = useSetAtom(sharedTreeDataAtom);
|
const setSharedTreeData = useSetAtom(sharedTreeDataAtom);
|
||||||
|
|
||||||
// Build and set the tree data when it changes
|
// Build and set the tree data when it changes
|
||||||
|
|||||||
@ -0,0 +1,17 @@
|
|||||||
|
import { type Kysely } from 'kysely';
|
||||||
|
|
||||||
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
|
await db.schema
|
||||||
|
.alterTable('auth_providers')
|
||||||
|
.addColumn('is_group_sync_enabled', 'boolean', (col) =>
|
||||||
|
col.defaultTo(false).notNull(),
|
||||||
|
)
|
||||||
|
.execute();
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function down(db: Kysely<any>): Promise<void> {
|
||||||
|
await db.schema
|
||||||
|
.alterTable('auth_providers')
|
||||||
|
.dropColumn('is_group_sync_enabled')
|
||||||
|
.execute();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user