mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 06:37:14 -04:00
fix: remove warnings
This commit is contained in:
parent
88eeb6bd36
commit
557a524648
2 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,8 @@ export const useCell = (cellIdentifier: CellIdentifier, cellCache: CellCache, fi
|
|||
},
|
||||
});
|
||||
|
||||
cellController.getCellData();
|
||||
// ignore the return value, because we are using the subscription
|
||||
void cellController.getCellData();
|
||||
};
|
||||
|
||||
return {
|
||||
|
|
|
@ -55,7 +55,7 @@ export class CellController<T, D> {
|
|||
});
|
||||
}
|
||||
|
||||
subscribeChanged = async (callbacks: Callbacks<T>) => {
|
||||
subscribeChanged = (callbacks: Callbacks<T>) => {
|
||||
this.subscribeCallbacks = callbacks;
|
||||
this.cellDataNotifier.observer.subscribe((cellData) => {
|
||||
if (cellData !== null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue