Fix role being stale when creating screens

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

View File

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