mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
remove unnecessary set
This commit is contained in:
parent
467e151aca
commit
f13b608e79
@ -53,9 +53,6 @@ export class WebViewModel implements ViewModel {
|
|||||||
|
|
||||||
this.viewText = jotai.atom((get) => {
|
this.viewText = jotai.atom((get) => {
|
||||||
let url = get(this.blockAtom)?.meta?.url || "";
|
let url = get(this.blockAtom)?.meta?.url || "";
|
||||||
if (url && get(this.url) === undefined) {
|
|
||||||
globalStore.set(this.url, url);
|
|
||||||
}
|
|
||||||
const urlIsDirty = get(this.isUrlDirty);
|
const urlIsDirty = get(this.isUrlDirty);
|
||||||
if (urlIsDirty) {
|
if (urlIsDirty) {
|
||||||
const currUrl = get(this.url);
|
const currUrl = get(this.url);
|
||||||
|
Loading…
Reference in New Issue
Block a user