mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
fix(core): slash ask ai returns make it real action result (#10349)
Fix issue [AF-2252](https://linear.app/affine-design/issue/AF-2252). ## What Changed? - Remove useless `generateAnswer` configuration for inline ask ai - Refactor the common `updateAIPanelConfig` function - Use empty string instead of meaningless `placeholder` string - Remove unnecessary high-order function wrappers
This commit is contained in:
@@ -278,7 +278,7 @@ export class AffineAIPanelWidget extends WidgetComponent {
|
||||
input?: string,
|
||||
shouldTriggerCallback?: boolean
|
||||
) => {
|
||||
if (input) {
|
||||
if (typeof input === 'string') {
|
||||
this._inputText = input;
|
||||
this.generate();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user