mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: remove warnings
This commit is contained in:
parent
88eeb6bd36
commit
557a524648
@ -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…
Reference in New Issue
Block a user