mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
refactor(editor): remove code block service (#11010)
This commit is contained in:
@@ -104,13 +104,11 @@ export class LanguageListButton extends WithDisposable(
|
||||
if (langList) {
|
||||
this._sortedBundledLanguages = JSON.parse(langList);
|
||||
} else {
|
||||
this._sortedBundledLanguages = this.blockComponent.service.langs.map(
|
||||
lang => ({
|
||||
label: lang.name,
|
||||
name: lang.id,
|
||||
aliases: lang.aliases,
|
||||
})
|
||||
);
|
||||
this._sortedBundledLanguages = this.blockComponent.langs.map(lang => ({
|
||||
label: lang.name,
|
||||
name: lang.id,
|
||||
aliases: lang.aliases,
|
||||
}));
|
||||
}
|
||||
|
||||
this.disposables.add(() => {
|
||||
|
||||
Reference in New Issue
Block a user