diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-24 06:29:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-24 07:55:11 +0900 |
| commit | 482c86a25a68a20ca950d0dc5fa8a1e00bde6783 (patch) | |
| tree | 94807741071df280efcd7d8a3c3b37cedda3975c /src/web/app/common/define-widget.ts | |
| parent | Fix #1131 (diff) | |
| download | misskey-482c86a25a68a20ca950d0dc5fa8a1e00bde6783.tar.gz misskey-482c86a25a68a20ca950d0dc5fa8a1e00bde6783.tar.bz2 misskey-482c86a25a68a20ca950d0dc5fa8a1e00bde6783.zip | |
:v:
Diffstat (limited to 'src/web/app/common/define-widget.ts')
| -rw-r--r-- | src/web/app/common/define-widget.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/app/common/define-widget.ts b/src/web/app/common/define-widget.ts index 826f9cc636..21821629ad 100644 --- a/src/web/app/common/define-widget.ts +++ b/src/web/app/common/define-widget.ts @@ -34,19 +34,20 @@ export default function<T extends object>(data: { } this.$watch('props', newProps => { + const w = (this as any).os.i.client_settings.mobile_home.find(w => w.id == this.id); if (this.isMobile) { (this as any).api('i/update_mobile_home', { id: this.id, data: newProps }).then(() => { - (this as any).os.i.client_settings.mobile_home.find(w => w.id == this.id).data = newProps; + w.data = newProps; }); } else { (this as any).api('i/update_home', { id: this.id, data: newProps }).then(() => { - (this as any).os.i.client_settings.home.find(w => w.id == this.id).data = newProps; + w.data = newProps; }); } }, { |