File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/routes/(console)/project-[region]-[project]/settings/migrations Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 20
20
} from ' @appwrite.io/pink-svelte' ;
21
21
import { Button } from ' $lib/elements/forms' ;
22
22
23
- export let migration: Models .Migration = null ;
24
23
export let show = false ;
24
+ export let migration: Models .Migration = null ;
25
+
26
+ // convert to proper json objects from string!
27
+ migration .errors = migration .errors .map ((err ) => {
28
+ try {
29
+ return JSON .parse (err );
30
+ } catch {
31
+ return err ;
32
+ }
33
+ });
25
34
26
35
type StatusCounters = {
27
36
[resource in ' Database' | ' Collection' | ' Function' | ' Users' ]? : StatusCounter ;
55
64
};
56
65
57
66
let tab = ' details' as ' details' | ' logs' ;
58
- let logs = JSON .stringify (migration , null , 2 );
67
+ const logs = JSON .stringify (migration , null , 2 );
59
68
</script >
60
69
61
70
<Modal
You can’t perform that action at this time.
0 commit comments