Skip to content

Commit 6af5766

Browse files
committed
Update rapid.vue
1 parent 4906bf8 commit 6af5766

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

pages/workspace/[id]/rapid.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@
99

1010
</template>
1111
<script setup lang="ts">
12-
import { pathwaysManager, rapidManager, rapid3Manager } from '~/services/index';
13-
12+
import { rapidManager, rapid3Manager } from '~/services/index';
13+
/* We are using this only for osw */
1414
const route = useRoute();
1515
const workspaceId = route.params.id;
16-
const datatype = route.query.datatype;
1716
const editor = route.query.editor;
1817
const editorContainer = ref(null);
1918
const sideBarText = ref('Loading editor...')
2019
2120
const oswManager = (editor === 'rapid3' && rapid3Manager) ? rapid3Manager : rapidManager
22-
const manager = datatype === 'osw' ? oswManager : pathwaysManager
21+
const manager = oswManager
2322
2423
function onEditorLoaded() {
2524
editorContainer.value.appendChild(manager.containerNode);
@@ -30,13 +29,13 @@ function onEditorLoaded() {
3029
onMounted(() => {
3130
// If a different Rapid version is already loaded, hard-reload to swap.
3231
// Only one version can occupy the global Rapid namespace at a time.
33-
if (datatype === 'osw') {
32+
// if (datatype === 'osw') {
3433
const otherManager = manager === rapidManager ? rapid3Manager : rapidManager
3534
if (otherManager?.loaded.value) {
3635
window.location.reload()
3736
return
3837
}
39-
}
38+
// }
4039
rapidManager.onStateChange((changes) => {
4140
console.log('Rapid state changed:', changes);
4241
sideBarText.value = `Rapid state changed: ${JSON.stringify(changes)}`;

0 commit comments

Comments
 (0)