mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-11-30 11:27:55 +08:00
fix: load view in useDatabaseOperations (#70)
This commit is contained in:
@@ -65,9 +65,6 @@ export const AppBusinessLayer: React.FC<AppBusinessLayerProps> = ({ children })
|
||||
// Initialize page operations
|
||||
const pageOperations = usePageOperations({ outline, loadOutline });
|
||||
|
||||
// Initialize database operations
|
||||
const databaseOperations = useDatabaseOperations(loadView, createRowDoc);
|
||||
|
||||
// Check if current view has been deleted
|
||||
const viewHasBeenDeleted = useMemo(() => {
|
||||
if (!viewId) return false;
|
||||
@@ -207,6 +204,9 @@ export const AppBusinessLayer: React.FC<AppBusinessLayerProps> = ({ children })
|
||||
[pageOperations, loadTrash]
|
||||
);
|
||||
|
||||
// Initialize database operations
|
||||
const databaseOperations = useDatabaseOperations(enhancedLoadView, createRowDoc);
|
||||
|
||||
// Business context value
|
||||
const businessContextValue: BusinessInternalContextType = useMemo(
|
||||
() => ({
|
||||
|
||||
Reference in New Issue
Block a user