fix(web): change component keys to use id tied to controller lifecycle instead of item id (#1681)
* fix(web): change component keys to use id tied to controller lifecycle instead of item id * chore: lint
This commit is contained in:
@@ -6,6 +6,7 @@ import { ItemViewControllerInterface } from './ItemViewControllerInterface'
|
||||
export class FileViewController implements ItemViewControllerInterface {
|
||||
public dealloced = false
|
||||
private removeStreamObserver?: () => void
|
||||
public runtimeId = `${Math.random()}`
|
||||
|
||||
constructor(private application: SNApplication, public item: FileItem) {}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ export class NoteViewController implements ItemViewControllerInterface {
|
||||
private saveTimeout?: ReturnType<typeof setTimeout>
|
||||
private defaultTitle: string | undefined
|
||||
private defaultTag: UuidString | undefined
|
||||
public runtimeId = `${Math.random()}`
|
||||
|
||||
constructor(
|
||||
private application: SNApplication,
|
||||
|
||||
Reference in New Issue
Block a user