Changes all documents to have an explicit type
This commit is contained in:
@@ -28,10 +28,7 @@ export const SecretEditForm = ({
|
||||
await pb.collection("documents").update(secret.id, {
|
||||
data: {
|
||||
...secret.data,
|
||||
secret: {
|
||||
...(secret.data as any).secret,
|
||||
discovered: newChecked,
|
||||
},
|
||||
discovered: newChecked,
|
||||
},
|
||||
});
|
||||
if (session || !newChecked) {
|
||||
@@ -62,10 +59,7 @@ export const SecretEditForm = ({
|
||||
await pb.collection("documents").update(secret.id, {
|
||||
data: {
|
||||
...secret.data,
|
||||
secret: {
|
||||
...secret.data.secret,
|
||||
text,
|
||||
},
|
||||
text,
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -82,7 +76,7 @@ export const SecretEditForm = ({
|
||||
/>
|
||||
<AutoSaveTextarea
|
||||
multiline={false}
|
||||
value={secret.data.secret.text}
|
||||
value={secret.data.text}
|
||||
onSave={saveText}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user