Fix role being stale when creating screens

This commit is contained in:
Andrew Kingston 2022-02-17 11:50:55 +00:00
parent daf8284a5b
commit aa2e6c97da
1 changed files with 2 additions and 1 deletions

View File

@ -12,11 +12,12 @@
let screenName = ""
let url = ""
let selectedScreens = []
let roleId = $selectedAccessRole || "BASIC"
let showProgressCircle = false
let routeError
let createdScreens = []
$: roleId = $selectedAccessRole || "BASIC"
const createScreens = async () => {
for (let screen of selectedScreens) {
let test = screen.create()