mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Fix query result updates for null values when items are deleted
This commit is contained in:
@@ -46,7 +46,6 @@ export const ChannelCreateDialog = ({
|
||||
onOpenChange(false);
|
||||
}}
|
||||
handleSubmit={(values) => {
|
||||
console.log('submit', values);
|
||||
if (isPending) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,6 @@ export const DatabaseCreateDialog = ({
|
||||
onOpenChange(false);
|
||||
}}
|
||||
handleSubmit={(values) => {
|
||||
console.log('submit', values);
|
||||
if (isPending) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,6 @@ export const FolderCreateDialog = ({
|
||||
onOpenChange(false);
|
||||
}}
|
||||
handleSubmit={(values) => {
|
||||
console.log('submit', values);
|
||||
if (isPending) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,6 @@ export const PageCreateDialog = ({
|
||||
onOpenChange(false);
|
||||
}}
|
||||
handleSubmit={(values) => {
|
||||
console.log('submit', values);
|
||||
if (isPending) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -73,14 +73,10 @@ const Root = () => {
|
||||
|
||||
React.useEffect(() => {
|
||||
const id = eventBus.subscribe((event: Event) => {
|
||||
if (event.type === 'query_result_updated' && event.id && event.result) {
|
||||
if (event.type === 'query_result_updated') {
|
||||
const result = event.result;
|
||||
const queryId = event.id;
|
||||
|
||||
if (!result) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!queryId) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user