🐛 Fix current project when having multiple
This commit is contained in:
@@ -24,14 +24,10 @@ export default {
|
||||
// No current project
|
||||
else
|
||||
{
|
||||
// Set first project as current
|
||||
const projectKeys = Object.keys(state.all)
|
||||
|
||||
// If only one project, set has current
|
||||
if(projectKeys.length === 1)
|
||||
{
|
||||
state.current = state.all[projectKeys[0]]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
addProject(state, data)
|
||||
|
||||
Vendored
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Mon super site</title>
|
||||
</head>
|
||||
<body>
|
||||
<section>
|
||||
|
||||
<h1>Bonjour</h1>
|
||||
<form action="#">
|
||||
<input type="text">
|
||||
</form>
|
||||
|
||||
<footer>
|
||||
<a href="#">Contact</a>
|
||||
</footer>
|
||||
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test
|
||||
*/
|
||||
class ClassName extends AnotherClass
|
||||
{
|
||||
|
||||
|
||||
function __construct( argument )
|
||||
{
|
||||
// code...
|
||||
}
|
||||
|
||||
function test()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user