mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
1.adjust code style.
This commit is contained in:
@@ -357,7 +357,7 @@ export class BlockClient<
|
||||
* @param name block name
|
||||
* @returns block instance
|
||||
*/
|
||||
public async get_named_block(
|
||||
public async getNamedBlock(
|
||||
name: string,
|
||||
options?: { workspace?: boolean }
|
||||
): Promise<BaseBlock<B, C>> {
|
||||
@@ -376,7 +376,7 @@ export class BlockClient<
|
||||
*/
|
||||
public async getWorkspace() {
|
||||
if (!this._root.node) {
|
||||
this._root.node = await this.get_named_block(this._workspace, {
|
||||
this._root.node = await this.getNamedBlock(this._workspace, {
|
||||
workspace: true,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user