mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 21:48:48 +08:00
fix(core): not using Internet search after user selects document or file (#10058)
Fix issue [BS-2546](https://linear.app/affine-design/issue/BS-2546).
This commit is contained in:
@@ -363,7 +363,10 @@ export class ChatPanelInput extends SignalWatcher(WithDisposable(LitElement)) {
|
||||
const { images, status } = this.chatContextValue;
|
||||
const hasImages = images.length > 0;
|
||||
const maxHeight = hasImages ? 272 + 2 : 200 + 2;
|
||||
const networkDisabled = !!this.chatContextValue.images.length;
|
||||
const networkDisabled =
|
||||
!!this.chatContextValue.images.length ||
|
||||
!!this.chatContextValue.chips.filter(chip => chip.state !== 'candidate')
|
||||
.length;
|
||||
const networkActive = !!this.networkSearchConfig.enabled.value;
|
||||
const uploadDisabled = networkActive && !networkDisabled;
|
||||
return html`<style>
|
||||
|
||||
Reference in New Issue
Block a user