chore: bump version (#1313)

This commit is contained in:
Himself65
2023-03-04 13:46:50 -06:00
committed by GitHub
parent 28f0027de6
commit dd6bee68cb
15 changed files with 143 additions and 104 deletions
+5 -1
View File
@@ -16,13 +16,17 @@ export function useWorkspaceBlob(
}
export function useWorkspaceBlobImage(
key: string,
key: string | null,
blockSuiteWorkspace: BlockSuiteWorkspace
) {
const blobStorage = useWorkspaceBlob(blockSuiteWorkspace);
const [imageURL, setImageURL] = useState<string | null>(null);
useEffect(() => {
const controller = new AbortController();
if (key === null) {
setImageURL(null);
return;
}
blobStorage?.get(key).then(blob => {
if (controller.signal.aborted) {
return;